http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57705
Bug ID: 57705 Summary: Non-constant step induction vars not vectorized Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: tree-optimization Assignee: jakub at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org int a[1024] __attribute__ ((aligned (32))); void bar (int k, int m) { int i, k2 = k; for (i = 0; i < 1024; i++) { a[i] = k2; k2 += m + 1; } } isn't vectorized, although it seems fairly easy to handle these.