[Bug tree-optimization/125755] `max <min <a, nonneg>, 0>` can be simplified into (signed)min<(unsigned)a, (unsigned)nonneg>

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 28 19:13:52 GMT 2026


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Invalid. as the clamp would be the wrong way for negative values of a.


More information about the Gcc-bugs mailing list