Tue Feb 5 19:50:07 PST 2008 Roman Leshchinskiy <[EMAIL PROTECTED]>
* Teach cheapEqExpr about casts
Previously, cheapEqExpr would always return False if it encountered a cast.
This was bad for two reasons. Firstly, CSE (which uses cheapEqExpr to compare
expressions) never eliminated expressions which contained casts and secondly,
it was inconsistent with exprIsBig. This patch fixes this.
M ./compiler/coreSyn/CoreUtils.lhs -1 +4
M ./compiler/types/Coercion.lhs +9
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc