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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-11-03
     Ever confirmed|0                           |1

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sam James from comment #2)
> I'm not confident about the evaluation order in m.

Change it to be:

  int b = 0;
  int n = g(f, &b);

and it still fails.

But I think the issue is around:
  for (; e(c + 77) + c - 836 + i < 2; i++)
    for (; m(c - 5);)

But even the call to m.

-fwrapv seems to fixes the issue.

So does `-fno-tree-vrp` (and -fdisable-tree-evrp -fdisable-tree-vrp1).
So does `-fno-tree-vectorize`.

Note with -fno-tree-vrp the vectorized IR looks the same except for the side
storage of the loop bounds which might be the issue ...

Reply via email to