https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94964
Bug ID: 94964 Summary: [8/9/10/11 Regression] ICE in add_phi_arg, at tree-phinodes.c:359 since r8-2993-ga7976089dba5e227 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Target Milestone: --- Quite old issue: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-5.C -fno-tree-sink -fno-guess-branch-probability -fno-tree-ch -finline-small-functions -O1 --param=early-inlining-insns=100 -fpredictive-commoning -c during GIMPLE pass: pcom /home/marxin/Programming/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-5.C: In function ‘void f()’: /home/marxin/Programming/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-5.C:41:6: internal compiler error: in add_phi_arg, at tree-phinodes.c:359 41 | void f() | ^ 0x7eb110 add_phi_arg(gphi*, tree_node*, edge_def*, unsigned int) /home/marxin/Programming/gcc/gcc/tree-phinodes.c:359 0x1162f37 initialize_root_vars_lm /home/marxin/Programming/gcc/gcc/tree-predcom.c:1969 0x1162f37 execute_load_motion /home/marxin/Programming/gcc/gcc/tree-predcom.c:2001 0x1162f37 execute_pred_commoning /home/marxin/Programming/gcc/gcc/tree-predcom.c:2265 0x11654f2 tree_predictive_commoning_loop /home/marxin/Programming/gcc/gcc/tree-predcom.c:3308 0x11654f2 tree_predictive_commoning() /home/marxin/Programming/gcc/gcc/tree-predcom.c:3333 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.