cvs commit: fptools/ghc/compiler/coreSyn CoreUtils.lhs
Simon Peyton Jones
simonpj@glass.cse.ogi.edu
Mon, 19 Mar 2001 08:20:44 -0800
simonpj 2001/03/19 08:20:44 PST
Modified files:
ghc/compiler/coreSyn CoreUtils.lhs
Log:
------------------------------------
Be more gung-ho about INLINE pragmas
------------------------------------
When we see
{-# INLINE f #-}
f = g $ h
should we inline f inside a lambda? Previously we said 'no'
because f looks like a redex, but that's a great mistake sometimes.
So this commit is more gung-ho: if you say INLINE that's what you get.
The changes are to exprIsDupable and exprIsCheap.
Revision Changes Path
1.71 +10 -6 fptools/ghc/compiler/coreSyn/CoreUtils.lhs