Hi, I recently stumbled across a cost parameter that seems rarely used, but could bring potential benefits.
It seems that most targets do not do reassociation for integers, both signed and unsigned. For signed, this is also rejected based on signedness, but for unsigned (or -fwrapv) this offers some optimization potential. This is especially the case for Fortran, if and when we decide to allow integer reassociation, which is explicitly allowed in the standard as long as parentheses are allowed. aarch64 does it, and so do the Zen version and a few more on x86, but almost everything else doesn't. Some more details at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129211 . Best regards Thomas
