https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102032
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|target |tree-optimization Last reconfirmed| |2021-08-24 Severity|normal |enhancement Ever confirmed|0 |1 Keywords| |missed-optimization Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, one way of fixing this is to have a "lower" gimple where signed integer overflow does not matter and then we can reassociate all we want. There is a simple reassociatation on the RTL level but it does not catch everything.