Testcase: int a[16*100]; int e; float f(void) { int i; for(i = 0;i<16*100;i++) e += a[i]; } rt.c:7: note: not vectorized: unsupported use in stmt.
If I manually LIM'd e, then this is vectorized. -- Summary: Missed reduction vectorizer after store to global is LIM'd Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32824