[Bug tree-optimization/52631] [4.6/4.7/4.8 Regression] VN does not use simplified expression for lookup

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 13 13:10:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52631

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |4.3.6

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-13 13:10:04 UTC ---
That looks good apart from the use of valid_gimple_rhs_p which allows too much.
I'd rather use get_gimple_rhs_class (TREE_CODE (simplified)) and allow
GIMPLE_UNARY_RHS, GIMPLE_BINARY_RHS and GIMPLE_TERNARY_RHS here.



More information about the Gcc-bugs mailing list