Fusion rule for "foldr k z (x:build g)"
authorDavid Feuer <David.Feuer@gmail.com>
Wed, 1 Oct 2014 13:57:27 +0000 (15:57 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Wed, 1 Oct 2014 16:20:26 +0000 (18:20 +0200)
commit789321098f86fd3c4483b24372f8938f89b12312
tree6ca281bb51fda372bbedc281c73c749ecd947272
parentd41dd03fdf0ef723ca31f5a11f07a54a15d2cbc0
Fusion rule for "foldr k z (x:build g)"

There seem to be various issues with general fold/cons and even
cons/build rules, but it seems pretty clear to me that the simple
fold/cons/build rule is a good idea. It doesn't do much for nofib
allocation, but it seems to improve some other analyses and speed
several benchmarks up. Implements #9536.
libraries/base/GHC/Base.lhs