[Bug tree-optimization/126487] Another missing smin/smax detection
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 30 04:27:22 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126487
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Another missing smin |Another missing smin/smax
|detection |detection
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
The max case is:
```
unsigned
smax_n1 (unsigned int a)
{
unsigned t = a;
unsigned t1 = -1u;
unsigned tt = __INT_MAX__;
return a <= tt ? t : -1u;
}
```
More information about the Gcc-bugs
mailing list