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
commit8b5cba427098511aaec8ba061d056d960bccfad9 (patch)
treed0379cfc973aed8686af384b7835ff5de52e135e
parent55945d1c3156cb63b348720d36514b19ecad8dcb (diff)
downloadtxr-8b5cba427098511aaec8ba061d056d960bccfad9.tar.gz
txr-8b5cba427098511aaec8ba061d056d960bccfad9.tar.bz2
txr-8b5cba427098511aaec8ba061d056d960bccfad9.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)))