• rl@cse.unsw.edu.au's avatar
    Teach cheapEqExpr about casts · a4835b8b
    rl@cse.unsw.edu.au authored
    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.