2014-06-11 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jun 2014 11:17:21 +0000 (11:17 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jun 2014 11:17:21 +0000 (11:17 +0000)
commitb46fda077f2e30e6d8bb5c4a98acdfa95c6cd72e
treedc1836abf9516c940ddea1b6de6e2edd678210f2
parentc9cbe29851d8e44c0cd433a14d53e70bb3e4de22
2014-06-11  Richard Biener  <rguenther@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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211450 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr61452.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c