https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114508
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Severity|normal |enhancement
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It comes down to figuring out that t is `x - 1`.
The problem is GCC does not reassociate signed types for overflow reasons.
