Tue Oct 28 07:08:28 PDT 2008 [EMAIL PROTECTED]
* Fix Trac #2720: inlining and casts
The issue here is what happens when we have
(f |> co) x
where f is itself marked INLINE. We want callSiteInline to "see"
the fact that the function is applied, and hence have some incentive
to inline. I've done this by extending CoreUnfold.CallCtxt with
ValAppCtxt. I think that should catch this case without messing up
any of the others.
M ./compiler/coreSyn/CoreUnfold.lhs -3 +18
M ./compiler/simplCore/SimplUtils.lhs -9 +9
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20081028140828-1287e-cf6c49decbff444edcd5141d31c94d93cf7bf215.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc