https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112612
--- Comment #2 from Eyal Rozenberg <eyalroz1 at gmx dot com> --- (In reply to Andrew Pinski from comment #1) > IV-OPTs selects these IVs and is very much target specific due to cost model. In this example, it seems that the missed optimization should be useful under most/all cost models. Of course, I may be wrong, I'm no CPU expert. > It is a N[P] complete problem after all too. I wonder if the asymptotic nature of the general problem is really the issue here. Anyway - I'm just noting the behavior. It is of course up to you all to decide whether you want to do something about it.