https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91750

            Bug ID: 91750
           Summary: Induction vectorization introduces signed overflows
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Split out from PR91665.

int val[1024];
void
foo (int n)
{
  int i;
  for (int j = 0, i = n; j < 1024; ++j, i=(unsigned)i+1)
    val[j] = i;
}

generates signed add for the induction vectorization.

Reply via email to