https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81546
Bug ID: 81546 Summary: ICE at -O3 during GIMPLE pass dom Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: babokin at gmail dot com Target Milestone: --- Created attachment 41823 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41823&action=edit reduced and original test cases gcc trunk rev250367, x86_64 Test case is reduced from much larger code. During reduction blame phase has changed from slsr to dom, but looks like it's still the same problem. Another interesting observation, during test case reduction one of intermediate results triggered too aggressive memory allocation (more that 128Gb), this was reported separately in #81488 > time g++ -O0 -c fff.cpp real 0m0.048s user 0m0.035s sys 0m0.012s > time g++ -O2 -c fff.cpp real 0m0.085s user 0m0.075s sys 0m0.010s > time g++ -O3 -c fff.cpp IMM ERROR : (use_p : tree - 0x7f63cea18b68:0x7f63cea18b88)_5 for SSA_NAME: _5 in statement: if (_5 != 0) during GIMPLE pass: dom fff.cpp: In function ‘void foo()’: fff.cpp:30:6: internal compiler error: verify_ssa failed void foo() { ^~~ 0x10f9043 verify_ssa(bool, bool) ../../gcc_svn_intel/gcc/tree-ssa.c:1186 0xe9088d execute_function_todo ../../gcc_svn_intel/gcc/passes.c:1996 0xe915ee execute_todo ../../gcc_svn_intel/gcc/passes.c:2043 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. real 2m12.280s user 2m6.464s sys 0m5.786s