https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93292
Bug ID: 93292 Summary: [10 Regression] ICE (segfault) in vectorizable_comparison on powerpc64le-linux-gnu Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: doko at ubuntu dot com Target Milestone: --- seen with 20200116 on powerpc64-linux-gnu $ cat editor_profiler.ii class a { public: static int c(float p1) { static int b; b = p1 ? p1 + 0.5 : 0; return b; } }; int *d; float e; void f() { float g; for (int h; h; h++) { d[h] += a::c(g < 0 ?: g > 5 ?: g); a::c(e); } } $ g++ -c -O3 -fstack-protector-strong editor_profiler.ii during GIMPLE pass: vect editor_profiler.ii: In function ‘void f()’: editor_profiler.ii:11:6: internal compiler error: Segmentation fault 11 | void f() { | ^ 0x10a217c3 crash_signal ../../src/gcc/toplev.c:328 0x10c9c79c TYPE_VECTOR_SUBPARTS(tree_node const*) ../../src/gcc/tree.h:3836 0x10c9c79c vectorizable_comparison ../../src/gcc/tree-vect-stmts.c:10495 0x10cad147 vect_analyze_stmt(_stmt_vec_info*, bool*, _slp_tree*, _slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) ../../src/gcc/tree-vect-stmts.c:10907 0x10cdb0ef vect_slp_analyze_node_operations ../../src/gcc/tree-vect-slp.c:2786 0x10cdb053 vect_slp_analyze_node_operations ../../src/gcc/tree-vect-slp.c:2850 0x10cdb053 vect_slp_analyze_node_operations ../../src/gcc/tree-vect-slp.c:2850 0x10cdb053 vect_slp_analyze_node_operations ../../src/gcc/tree-vect-slp.c:2850 0x10cdb053 vect_slp_analyze_node_operations ../../src/gcc/tree-vect-slp.c:2850 0x10cdf97f vect_slp_analyze_operations(vec_info*) ../../src/gcc/tree-vect-slp.c:2926 0x10ce208f vect_slp_analyze_bb_1 ../../src/gcc/tree-vect-slp.c:3250 0x10ce208f vect_slp_bb_region ../../src/gcc/tree-vect-slp.c:3311 0x10ce208f vect_slp_bb(basic_block_def*) ../../src/gcc/tree-vect-slp.c:3446 0x10ce79eb try_vectorize_loop_1 ../../src/gcc/tree-vectorizer.c:946 0x10ce83ff vectorize_loops() ../../src/gcc/tree-vectorizer.c:1125 0x10baec9f execute ../../src/gcc/tree-ssa-loop.c:414 Please submit a full bug report, with preprocessed source if appropriate.