summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-02-18 08:14:37 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-02-18 08:14:37 -0800
commitf2441b0b93c9ed2c4d0ca46c89f0677fc60a5a85 (patch)
tree8beb9dae6e91be96fd2f11ad4ab39eb60a3c368c /arith.c
parentd460fe76189c477d2fca48477fc26612148c469f (diff)
downloadtxr-f2441b0b93c9ed2c4d0ca46c89f0677fc60a5a85.tar.gz
txr-f2441b0b93c9ed2c4d0ca46c89f0677fc60a5a85.tar.bz2
txr-f2441b0b93c9ed2c4d0ca46c89f0677fc60a5a85.zip
compiler: reduce (if (not (eq ...) ...)).
* share/txr/stdlib/compiler.tl (compiler comp-if): Recognize the pattern (if (not (eq ...) ..), and convert to (if (neq ...) ...) and likewise for eql and equal. This is fed back to comp-if, whereby it may be further reduced.
Diffstat (limited to 'arith.c')
0 files changed, 0 insertions, 0 deletions