simplify one kind of degenerate prompt
authorAndy Wingo <wingo@pobox.com>
Thu, 5 Jul 2012 18:39:16 +0000 (20:39 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 5 Jul 2012 18:39:16 +0000 (20:39 +0200)
commit997ed30070b0c6559abf6dc748a27ae286179dd4
tree890b89b539611ab0e1bdeab54c759b4cab028c48
parent37081d5d4b2d5093a339ee33f94d9e47deb1c346
simplify one kind of degenerate prompt

* module/language/tree-il/peval.scm (<operand>): Instead of having a
  `residualize?' field, have it be a use count.
  (peval): Adapt to <operand> change.  Add function to kill uses of an
  operand.  Use it in the <prompt> inliner.  Add another kind of
  degenerate prompt to elide.  We should really switch to CPS though, as
  that will allow us to contify more aggressively.

* test-suite/tests/peval.test ("partial evaluation"): Adapt (while #t
  #t) test, which was sensitive to how far the recursive inlining got.
  Add a test for the degenerate prompt elision.
module/language/tree-il/peval.scm
test-suite/tests/peval.test