fix bugs in effects analysis of "effect+exception-free-primitives"
authorAndy Wingo <wingo@pobox.com>
Thu, 5 Jul 2012 18:34:28 +0000 (20:34 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 5 Jul 2012 18:34:28 +0000 (20:34 +0200)
commit37081d5d4b2d5093a339ee33f94d9e47deb1c346
tree0430d259ce4781a264c0854fd74ab19a5c544f21
parent3d2bcd2c350384ffaf96b79fa6096c9d77ea113e
fix bugs in effects analysis of "effect+exception-free-primitives"

* module/language/tree-il/effects.scm (make-effects-analyzer): Be more
  precise regarding the effects of the so-called
  effect+exception-free-primitives: now we check their arities.

* test-suite/tests/cse.test ("cse"): Add a test that we don't
  elide (cons 1 2 3) in effect context.
module/language/tree-il/effects.scm
test-suite/tests/cse.test