[Bug tree-optimization/66949] [6 Regression] ICE at -O2 and -O3 on x86_64-linux-gnu in tree_ssa_phiopt_worker, at tree-ssa-phiopt.c:335
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 9 14:58:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66949
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Dec 9 14:58:22 2015
New Revision: 231457
URL: https://gcc.gnu.org/viewcvs?rev=231457&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr66949-1.c
trunk/gcc/testsuite/gcc.dg/torture/pr66949-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-phiopt.c
More information about the Gcc-bugs
mailing list