summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-12-11 01:33:54 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-12-11 01:33:54 -0800
commita5352bc3d66db8fa0cde918bbafdb0053b836dbb (patch)
treed0379cfc973aed8686af384b7835ff5de52e135e
parent887c52b5e0426139ef43baed499ce8d6dc4903bb (diff)
downloadtxr-a5352bc3d66db8fa0cde918bbafdb0053b836dbb.tar.gz
txr-a5352bc3d66db8fa0cde918bbafdb0053b836dbb.tar.bz2
txr-a5352bc3d66db8fa0cde918bbafdb0053b836dbb.zip
compiler: small end/jend issue in late-peephole.
* stdlib/optimize.tl (basic-blocks late-peephole): In one pattern, an instruction that is recognized as (jend ...) is inadvertently rewritten to (end ...). Since this is the last optimization stage, currently, and end and jend are synonyms for the same opcode, it doesn't matter. But it could turn into a bug; let's fix it.
-rw-r--r--stdlib/optimize.tl2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/optimize.tl b/stdlib/optimize.tl
index 9c94d445..11b85aca 100644
--- a/stdlib/optimize.tl
+++ b/stdlib/optimize.tl
@@ -634,7 +634,7 @@
,lab1
(gcall (t ,ty) ,*args)
,lab2
- (end (t ,ty))
+ (jend (t ,ty))
,*rest))
(@else else)))