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

            Bug ID: 110975
           Summary: Missed unlooping
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org
  Target Milestone: ---

This is what we generate from loop-split for hmmer benchmark:

int *a;
void
test (int n)
{
        int i;
        for (i=0 ; i < n; i++)
                a[i]++;
        for (i=0 ; i <= n; i++)
                a[i]--;
}

The second loop never iterates but we don't seem to be able to figure this out
and leave the loop around.

Reply via email to