2015-07-06 Richard Biener <rguenther@suse.de>
commit83c60000092ee9c5ab8dd8c3c7ecd6b3d0140c9b
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jul 2015 14:41:22 +0000 (6 14:41 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jul 2015 14:41:22 +0000 (6 14:41 +0000)
tree8a0f6f699215e47e3df794c0f8c1e8b5155409b0
parenta21bc0fdfe3e09b8379b1bc896f6732e0a6a9d2b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225459 138bc75d-0d04-0410-961f-82ee72b054a4
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