http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56350
Bug #: 56350 Summary: ICE in vectorizable_reduction, at tree-vect-loop.c:4731 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: antoine.balest...@gmail.com Using GCC 4.8.0 as of 20130215 : $ cat vect.c int a, b, c; void f(void) { for(; c; c++) for(b = 0; b < 2; b++) a /= 8; } $ xgcc -O1 -ftree-vectorize -w vect.c vect.c: In function âfâ: vect.c:3:6: internal compiler error: in vectorizable_reduction, at tree-vect-loop.c:4731 void f(void) ^ 0xa8e953 vectorizable_reduction(gimple_statement_d*, gimple_stmt_iterator*, gimple_statement_d**, _slp_tree*) ../../srcdir/gcc/tree-vect-loop.c:4727 0xa81ff0 vect_analyze_stmt(gimple_statement_d*, bool*, _slp_tree*) ../../srcdir/gcc/tree-vect-stmts.c:5691 0xa80f75 vect_analyze_stmt(gimple_statement_d*, bool*, _slp_tree*) ../../srcdir/gcc/tree-vect-stmts.c:5613 0x4cffb9 vect_analyze_loop_operations ../../srcdir/gcc/tree-vect-loop.c:1443 0xa8c064 vect_analyze_loop_2 ../../srcdir/gcc/tree-vect-loop.c:1720 0xa8c064 vect_analyze_loop(loop*) ../../srcdir/gcc/tree-vect-loop.c:1773 0xa9e06c vectorize_loops() ../../srcdir/gcc/tree-vectorizer.c:113 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.