[project @ 2001-03-19 16:20:44 by simonpj]
authorsimonpj <unknown>
Mon, 19 Mar 2001 16:20:44 +0000 (16:20 +0000)
committersimonpj <unknown>
Mon, 19 Mar 2001 16:20:44 +0000 (16:20 +0000)
commit4fb9c8aa14742cf98c1c0f2be1f98841fad145b8
tree69c9ed1b681aa912c8cf7736ff2c874f05c5df7c
parentff39a56b7750b81e93a0e4e40796cb048efb08b5
[project @ 2001-03-19 16:20:44 by simonpj]
------------------------------------
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.
ghc/compiler/coreSyn/CoreUtils.lhs