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

            Bug ID: 123732
           Summary: loop splitting seems to be only based on gimple_COND
                    and not just any comparison in the loop
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
```
int f()
{
    int e = 0;
    for (int f = -100; f < 100; ++f)
      e += f > 0;
  return e;
}
```

This should be split into 2 loops, one from -100 to 0 and the second from 1 to
99.

Reply via email to