summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-04-18 06:18:02 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-04-18 06:18:02 -0700
commit93cbd81f0fb5242bb93062848826bf5b6b5e9d46 (patch)
tree06949b66eba3b6e0667b6ba652e96292b1f677c2 /win
parentbfc81fe0cb680d95ae8fc91ec94562d2df6e12e4 (diff)
downloadtxr-93cbd81f0fb5242bb93062848826bf5b6b5e9d46.tar.gz
txr-93cbd81f0fb5242bb93062848826bf5b6b5e9d46.tar.bz2
txr-93cbd81f0fb5242bb93062848826bf5b6b5e9d46.zip
compiler: de-duplicate switch.
* share/txr/stdlib/compiler.tl (compiler comp-switch): Identify duplicate cases and don't generate code for these; patch their table entries to point to one case. The case macros generate such code when the keys are integers, and multiple integer keys are associated with the same case: (caseq x ((1 2 3 4 5) ...) ((6 7) ...)).
Diffstat (limited to 'win')
0 files changed, 0 insertions, 0 deletions