patch applied (ghc-6.8/ghc): small reworking of the
loop-breaker-choosing algorithm
Ian Lynagh
igloo at earth.li
Tue Oct 30 22:18:36 EDT 2007
Tue Oct 9 07:53:05 PDT 2007 Simon Marlow <simonmar at microsoft.com>
* small reworking of the loop-breaker-choosing algorithm
Previously inline candidates were given higher preference as
non-loop-breakers than constructor applications, but the reason for
this was that making a wrapper into a loop-breaker is to be avoided at
all costs. This patch refines the algorithm slightly so that wrappers
are explicitly avoided by giving them a much higher score, and other
inline candidates are given lower scores than constructor
applications.
This makes almost zero difference to a complete nofib run, so it
amounts to just a tidyup.
M ./compiler/simplCore/OccurAnal.lhs -22 +29
More information about the Cvs-ghc
mailing list