patch applied (ghc): Improve inlining for INLINE non-functions
Simon Peyton Jones
simonpj at microsoft.com
Tue Dec 4 09:16:04 EST 2007
Tue Dec 4 03:49:55 PST 2007 simonpj at microsoft.com
* Improve inlining for INLINE non-functions
(No need to merge to 6.8, but no harm if a subsequent patch needs it.)
The proximate cause for this patch is to improve the inlining for INLINE
things that are not functions; this came up in the NDP project. See
Note [Lone variables] in CoreUnfold.
This caused some refactoring that actually made things simpler. In
particular, more of the inlining logic has moved from SimplUtils to
CoreUnfold, where it belongs.
M ./compiler/coreSyn/CoreUnfold.lhs -40 +117
M ./compiler/simplCore/SimplEnv.lhs -1 +1
M ./compiler/simplCore/SimplUtils.lhs -54 +19
M ./compiler/simplCore/Simplify.lhs -5 +3
More information about the Cvs-ghc
mailing list