re PR tree-optimization/66772 (ICE at -O2 and -O3 on x86_64-linux-gnu)
authorRichard Biener <rguenther@suse.de>
Mon, 6 Jul 2015 14:41:22 +0000 (14:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 6 Jul 2015 14:41:22 +0000 (14:41 +0000)
commit1a02f6c118f7e572208ef717f785d78e112f7f6b
tree8a0f6f699215e47e3df794c0f8c1e8b5155409b0
parentfe55a82362706dc6453e7d9af16b3cbe8e0e9922
re PR tree-optimization/66772 (ICE at -O2 and -O3 on x86_64-linux-gnu)

2015-07-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66772
* tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
values are available in the PHI node BB when there are
still unexecutable edges.

* gcc.dg/torture/pr66772-1.c: New testcase.
* gcc.dg/torture/pr66772-2.c: Likewise.

From-SVN: r225459
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr66733-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr66733-2.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c