re PR tree-optimization/61452 (hang at -O1 and -Os on x86_64-linux-gnu)
authorRichard Biener <rguenther@suse.de>
Wed, 11 Jun 2014 11:17:21 +0000 (11:17 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 11 Jun 2014 11:17:21 +0000 (11:17 +0000)
commitc1604254c5a86a29e87e11520f4698fd2d2ce99f
treedc1836abf9516c940ddea1b6de6e2edd678210f2
parentac8345a525674204550c7a9f5cbb3deec7467d6d
re PR tree-optimization/61452 (hang at -O1 and -Os on x86_64-linux-gnu)

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.

From-SVN: r211450
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr61452.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c