https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110982
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2023-09-25
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Another case where int_fits_type_p use causes an missed optimization is:
```
unsigned f(int a)
{
unsigned t = a;
if (a == -1)
return t;
return 0;
}
```
This should be caught in phiopt2 but currently is not due to the
int_fits_type_p usage.
I noticed this in PR 110131 .