summaryrefslogtreecommitdiff
path: root/module/language/cps/optimize.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2015-11-20 14:03:32 +0100
committerAndy Wingo <wingo@pobox.com>2015-12-01 11:30:55 +0100
commit8f18b71b7afcd475553f760f83af7d79fc34cf01 (patch)
treedb6ae168adc4eba05ba54576cab90a4ecf7f32e4 /module/language/cps/optimize.scm
parente003466039da31cec9f8d4d7ea9dcb3805a5d670 (diff)
downloadguile-8f18b71b7afcd475553f760f83af7d79fc34cf01.tar.gz
Remove add1 and sub1
* libguile/vm-engine.c: Remove add1 and sub1 instructions. Will replace with add/immediate and sub/immediate. * module/language/tree-il/peval.scm (peval): If we reify a new <primcall>, expand it. Removes 1- and similar primcalls. * module/language/tree-il/primitives.scm: Don't specialize (+ x 1) to 1+. (expand-primcall): New export, does a single primcall expansion. (expand-primitives): Use the new helper. * module/language/cps/effects-analysis.scm: * module/language/cps/primitives.scm: * module/language/cps/types.scm: * module/system/vm/assembler.scm: Remove support for add1 and sub1 CPS primitives. * test-suite/tests/peval.test ("partial evaluation"): Adapt tests that expect 1+/1- to expect +/-.
Diffstat (limited to 'module/language/cps/optimize.scm')
0 files changed, 0 insertions, 0 deletions