https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104579
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Blocks| |53947 Last reconfirmed| |2022-02-17 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Yes, you can re-materialize maxInt outside of the loop but you have to update it during the loop as well which will end up not fixing the issue. Btw, this bug has a duplicate somewhere. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 [Bug 53947] [meta-bug] vectorizer missed-optimizations