summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/txr/stdlib/compiler.tl3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl
index cd602573..4b71b572 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -535,6 +535,9 @@
(if pos 'eq 'neq)
(if pos'eql 'neql))))
me.(compile oreg env ^(if (,cf ,a ,b) ,*rest))))
+ (((not (@(and @(or eq eql equal) @op) . @eargs)) . @args)
+ (let ((nop (caseq op (eq 'neq) (eql 'neql) (equal 'nequal))))
+ me.(comp-if oreg env ^(if (,nop ,*eargs) ,*args))))
((@(constantp @test) @then @else)
me.(compile oreg env (if (eval test) then else)))
((@(constantp @test) @then)