https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68976
Bug ID: 68976
Summary: [6 Regression] ICE w/ -O2 (and above)
-fgraphite-identity (or -floop-nest-optimize)
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
gcc-6.0.0-alpha20151213 ICEs when compiling the following reduced snippet w/
-O2 (-O3, -Ofast) and -fgraphite-identity (or -floop-nest-optimize):
int kw = -1, hv = -1, ju;
int mc[1];
void
xx(void)
{
for (; kw; ++kw)
for (; hv; ++hv)
for (ju = 0; ju < 2; ++ju)
mc[kw+1] = mc[0];
}
Incomplete backtrace:
#0 0x0000000000b535fd in ssa_default_def(function*, tree_node*) ()
#1 0x0000000000b55e61 in get_or_create_ssa_default_def(function*, tree_node*)
()
#2 0x0000000000b8c0b4 in ?? ()
#3 0x0000000000b8ce75 in
rewrite_update_dom_walker::before_dom_children(basic_block_def*) ()
#4 0x0000000001199263 in dom_walker::walk(basic_block_def*) ()
#5 0x0000000000b8952a in ?? ()
#6 0x0000000000b9168f in update_ssa(unsigned int) ()
#7 0x00000000011c3ea9 in graphite_regenerate_ast_isl(scop*) ()
#8 0x00000000011bade6 in graphite_transform_loops() ()
#9 0x00000000011bb371 in ?? ()
#10 0x0000000000a3ac2b in execute_one_pass(opt_pass*) ()
#11 0x0000000000a3b258 in ?? ()
#12 0x0000000000a3b26a in ?? ()
#13 0x0000000000a3b26a in ?? ()
#14 0x0000000000a3b26a in ?? ()
#15 0x0000000000a3b2b5 in execute_pass_list(function*, opt_pass*) ()
#16 0x000000000074d587 in cgraph_node::expand() ()
#17 0x000000000074ef07 in ?? ()
#18 0x00000000007513a3 in symbol_table::finalize_compilation_unit() ()
#19 0x0000000000b05342 in ?? ()
#20 0x00000000005baf6a in toplev::main(int, char**) ()
#21 0x00000000005bd177 in main ()