Simplify calls to `equal?' when one argument is a constant.
authorLudovic Courtès <ludo@gnu.org>
Fri, 5 Oct 2012 23:24:46 +0000 (01:24 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 6 Oct 2012 20:34:00 +0000 (22:34 +0200)
commit2446f8e126d9a7c145c4868f2a918d2dfb226d4e
tree7c326eba8213442d55eb48a4d90749aa882091a8
parent226a56a3d454b18b2b57c4489fdb8efbf4cd8332
Simplify calls to `equal?' when one argument is a constant.

* module/language/tree-il/primitives.scm (*primitive-expand-table*): Add
  expansion rules for `equal?', when called with one constant and
  another argument.

* test-suite/tests/tree-il.test (pass-if-primitives-resolved): New
  macro.
  ("primitives"): New test prefix.
module/language/tree-il/primitives.scm
test-suite/tests/tree-il.test