Fix interaction of exprIsCheap and the lone-variable inlining check
authorsimonpj@microsoft.com <unknown>
Wed, 5 May 2010 20:07:23 +0000 (20:07 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 5 May 2010 20:07:23 +0000 (20:07 +0000)
commit356e6869dec4b623a3aba239e72c682667a2b85e
tree3755956a534bbaed20f21a573686f6edd6edd6ba
parent9abe297285fe213ccd804f47d253055797cf667a
Fix interaction of exprIsCheap and the lone-variable inlining check

See Note [Interaction of exprIsCheap and lone variables] in CoreUnfold

This buglet meant that a nullary definition with an INLINE pragma
counter-intuitively didn't get inlined at all.  Roman identified
the bug.
compiler/coreSyn/CoreUnfold.lhs
compiler/coreSyn/CoreUtils.lhs