]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR tree-optimization/66949
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Dec 2015 14:58:22 +0000 (14:58 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Dec 2015 14:58:22 +0000 (14:58 +0000)
commit5dccd071de3d850935e3651139a1c87bdf335ac3
tree5fcd418e8b836089f91ef035054fc6ad482c7638
parent4e12ee8222a9be1eb1baa2a550674d35ee288bac
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.

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