re PR tree-optimization/68240 (compilation hangs on valid code at -O1 and above on...
authorRichard Biener <rguenther@suse.de>
Tue, 10 Nov 2015 10:14:02 +0000 (10:14 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 10 Nov 2015 10:14:02 +0000 (10:14 +0000)
commit94852c8ec4eef2ad17846c714e469ea000127dec
tree2f3eeb73d87f9579075107f54e3e02459357ff78
parentef785d9f193c035350a2f01223ccd87391226323
re PR tree-optimization/68240 (compilation hangs on valid code at -O1 and above on x86_64-linux-gnu)

2015-11-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/68240
* tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
properly.
(visit_phi): For PHIs with just a single executable edge
take its value directly.
(expressions_equal_p): Handle VN_TOP properly.

* gcc.dg/torture/pr68240.c: New testcase.

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