https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92742
Bug ID: 92742 Summary: [10 Regression] ICE in info_for_reduction, at tree-vect-loop.c:4367 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: asolokha at gmx dot com Target Milestone: --- gcc-10.0.0-alpha20191124 snapshot (r278660) ICEs when compiling the following testcase w/ -O3: unsigned int qw; int rs (int iq, int wg) { for (qw = 0; qw < 2; ++qw) { } while (iq < 1) { wg *= qw * 2; ++iq; } return wg; } % gcc-10.0.0-alpha20191124 -O3 -c bcr4em7v.c during GIMPLE pass: vect bcr4em7v.c: In function 'rs': bcr4em7v.c:4:1: internal compiler error: in info_for_reduction, at tree-vect-loop.c:4367 4 | rs (int iq, int wg) | ^~ 0x6d760c info_for_reduction(_stmt_vec_info*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vect-loop.c:4367 0xf5e0b4 vectorizable_reduction(_stmt_vec_info*, _slp_tree*, _slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vect-loop.c:5967 0xf4ed0a vect_analyze_stmt(_stmt_vec_info*, bool*, _slp_tree*, _slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vect-stmts.c:10849 0xf7ae0c vect_slp_analyze_node_operations_1 /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vect-slp.c:2792 0xf7ae0c vect_slp_analyze_node_operations /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vect-slp.c:2898 0xf7e7b1 vect_slp_analyze_operations(vec_info*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vect-slp.c:2932 0xf66527 vect_analyze_loop_2 /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vect-loop.c:2125 0xf66527 vect_analyze_loop(loop*, vec_info_shared*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vect-loop.c:2554 0xf84b90 try_vectorize_loop_1 /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vectorizer.c:892 0xf8560e vectorize_loops() /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191124/work/gcc-10-20191124/gcc/tree-vectorizer.c:1125