]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR tree-optimization/61452 (hang at -O1 and -Os on x86_64-linux-gnu)
authorRichard Biener <rguenther@suse.de>
Tue, 9 Sep 2014 14:45:57 +0000 (14:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 Sep 2014 14:45:57 +0000 (14:45 +0000)
commit5a3cc00f6f7cc1f9e645e136fb67ddfb73f42043
tree9fbe272c1e4c0450b6a79cf12eab635f972839ba
parentd310260c5b5416078b359e42f5ee9413237e6557
backport: re PR tree-optimization/61452 (hang at -O1 and -Os on x86_64-linux-gnu)

2014-09-09  Richard Biener  <rguenther@suse.de>

Backport from mainline
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: r215081
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr61452.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c