peval: more effective binding pruning
authorAndy Wingo <wingo@pobox.com>
Tue, 27 Sep 2011 21:21:53 +0000 (23:21 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 27 Sep 2011 22:13:56 +0000 (00:13 +0200)
commit40be30c97459e1baf8a9997c1c116a67f153cfef
tree37f5980b03efe36704673f25e6c5c26488a07066
parentfc283c92cbdb31942f033541b52376fd1bade3f2
peval: more effective binding pruning

* module/language/tree-il/optimize.scm (peval): Factor prune-bindings
  out of `let' and company.  Have it process unreferenced bindings in
  effect context instead of always residualizing non-constant
  expressions.
module/language/tree-il/optimize.scm
test-suite/tests/tree-il.test