optimization for chain of if expressions with common tests
authorAndy Wingo <wingo@pobox.com>
Tue, 15 May 2012 10:18:30 +0000 (12:18 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 15 May 2012 10:25:37 +0000 (12:25 +0200)
commitf49fd9afd698706bd7ff474412b7db0586ad0a56
tree5698b724c50789b9e79b220ad7cf65fedd3badc2
parent1fb39dc55fd55476a0e7be6d483f705d9bf8fead
optimization for chain of if expressions with common tests

* module/language/tree-il/peval.scm (peval): Optimize common tests in
  chains of "if" expressions, like those generated by matchers.

* test-suite/tests/peval.test ("partial evaluation"): Add a test.
module/language/tree-il/peval.scm
test-suite/tests/peval.test