https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92347
Bug ID: 92347 Summary: [10 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1537 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, openmp Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: x86_64-unknown-linux-gnu gcc-10.0.0-alpha20191103 snapshot (r277758) ICEs when compiling the following testcase reduced from libgomp/testsuite/libgomp.c/examples-4/simd-2.c w/ -mavx -O1 -fopenmp: int by; #pragma omp declare simd int zp (int); void qh (int oh) { #pragma omp simd for (by = 0; by < oh; ++by) by = zp (by); } % x86_64-unknown-linux-gnu-gcc-10.0.0-alpha20191103 -mavx -O1 -fopenmp -c m63qbxe6.c during GIMPLE pass: vect m63qbxe6.c: In function 'qh': m63qbxe6.c:8:1: internal compiler error: in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1537 8 | qh (int oh) | ^~ 0x6b66f8 vect_get_vec_def_for_operand_1(_stmt_vec_info*, vect_def_type) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vect-stmts.c:1537 0xe901c5 vectorizable_live_operation(_stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*, int, bool, vec<stmt_info_for_cost, va_heap, vl_ptr>*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vect-loop.c:7692 0xe5dde0 can_vectorize_live_stmts /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vect-stmts.c:10612 0xe5dde0 can_vectorize_live_stmts /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vect-stmts.c:10593 0xe7e33c vect_transform_stmt(_stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vect-stmts.c:11064 0xe81269 vect_transform_loop_stmt /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vect-loop.c:8008 0xe946c6 vect_transform_loop(_loop_vec_info*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vect-loop.c:8410 0xeadae0 try_vectorize_loop_1 /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vectorizer.c:990 0xeadd2b try_vectorize_loop_1 /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vectorizer.c:1027 0xeae6ed vectorize_loops() /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-vectorizer.c:1127