Type-driven strength reduction
authorAndy Wingo <wingo@pobox.com>
Fri, 4 Jul 2014 08:46:31 +0000 (10:46 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 4 Jul 2014 08:46:31 +0000 (10:46 +0200)
commit384d1ec3b21265b145cb297edd16ca5c28f8f9c4
tree8b7105ac047ae28fb664b0ecdd167338eda24148
parentc7b71b1fdd53fbc1753006e0201ce26a16b61f9a
Type-driven strength reduction

* module/language/cps/type-fold.scm (*primcall-reducers*):
  (define-primcall-reducer, define-unary-primcall-reducer):
  (define-binary-primcall-reducer, mul): Beginnings of strength
  reduction.
  (fold-and-reduce): Rename from compute-folded.
  (fold-constants*): Adapt.
module/language/cps/type-fold.scm