https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121138
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So looking again, it just peeled off one iteration. So there is no missed-optimization. Can you explain why you think it is worse. Both are infinite loops too.