Optimize Equality Primitives
authorNoah Lavine <noah.b.lavine@gmail.com>
Sat, 18 Feb 2012 15:55:49 +0000 (10:55 -0500)
committerNoah Lavine <noah.b.lavine@gmail.com>
Mon, 20 Feb 2012 20:24:17 +0000 (15:24 -0500)
commit3c65e3fda512cda13de244e853afd0fa0e7b5962
tree36cfdedc7f8e4c7da483d28ee8b9f11a3140170f
parent6978c673393a960d7caf604b8c72ff2b5fe0f4ec
Optimize Equality Primitives

* module/language/tree-il/primitives.scm: add equality-primitive?,
  which is true for eq?, eqv?, and equal?
* module/language/tree-il/peval.scm: if an equality primitive is
  applied to the same variable twice, fold it to #t
* test-suite/tests/tree-il.test: add tests for pevaling equality
  primitives
module/language/tree-il/peval.scm
module/language/tree-il/primitives.scm
test-suite/tests/tree-il.test