re PR tree-optimization/66949 (ICE at -O2 and -O3 on x86_64-linux-gnu in tree_ssa_phi...
authorMarek Polacek <polacek@redhat.com>
Wed, 9 Dec 2015 14:58:22 +0000 (14:58 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 9 Dec 2015 14:58:22 +0000 (14:58 +0000)
commit0e0997a2d5484e496896f4a6b00245e2c191de1c
tree5fcd418e8b836089f91ef035054fc6ad482c7638
parent4c81f958b3f1b2a41e94d505c34b6d911502bb15
re PR tree-optimization/66949 (ICE at -O2 and -O3 on x86_64-linux-gnu in tree_ssa_phiopt_worker, at tree-ssa-phiopt.c:335)

PR tree-optimization/66949
* tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
single_non_singleton_phi_for_edges to get the PHI from
factor_out_conditional_conversion.  Use NULL_TREE instead of NULL.
(factor_out_conditional_conversion): Adjust declaration.  Make it
return the newly-created PHI.

* gcc.dg/torture/pr66949-1.c: New test.
* gcc.dg/torture/pr66949-2.c: New test.

From-SVN: r231457
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr66949-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr66949-2.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c