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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection, wrong-code
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2025-05-27
             Target|                            |x86_64-*-*
   Target Milestone|---                         |16.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  unswitching seems to at least trigger it:

> ./xgcc -B. t.c -O2 -fopt-info -funswitch-loops
t.c:30:14: optimized:  Inlined d.constprop/9 into main/7 which now has time
57.004369 and size 31, net change of -8.
t.c:16:8: optimized: unswitching loop 1 on ‘if’ with condition: a.0_7 != -7
> ./a.out 
-227068033

note I made 'd' static, making it noipa no longer reproduces the issue.

Reply via email to