https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61452
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Sep 9 14:45:57 2014 New Revision: 215081 URL: https://gcc.gnu.org/viewcvs?rev=215081&root=gcc&view=rev Log: 2014-09-09 Richard Biener <rguent...@suse.de> Backport from mainline 2014-06-11 Richard Biener <rguent...@suse.de> PR tree-optimization/61452 * tree-ssa-sccvn.c (visit_phi): Remove pointless setting of expr and has_constants in case we found a leader. (simplify_binary_expression): Always valueize operands first. (simplify_unary_expression): Likewise. * gcc.dg/torture/pr61452.c: New testcase. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr61452.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/testsuite/ChangeLog branches/gcc-4_8-branch/gcc/tree-ssa-sccvn.c