re PR tree-optimization/87147 (GCC miscompiles at -O3 on valid code)
authorRichard Biener <rguenther@suse.de>
Thu, 30 Aug 2018 12:37:10 +0000 (12:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Aug 2018 12:37:10 +0000 (12:37 +0000)
commitb1d5f644929182de05cf2bb940a6c417ec28f29a
treee9f0db5db8d2a0fdf340469bc42a7d577979b988
parent28428506aafe4613e4abf0b38671b4fc9c371ef9
re PR tree-optimization/87147 (GCC miscompiles at -O3 on valid code)

2018-08-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/87147
* tree-ssa-sccvn.c (SSA_VISITED): New function.
(visit_phi): When the degenerate result is from the backedge and
we didn't visit its definition yet drop to VARYING.
(do_rpo_vn): Properly mark blocks with incoming backedges as executable.

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

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