https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114589
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- So actually it also needs -fno-ivopts since otherwise VRP is confused. With -fno-ivopts it's late DOM that figures out the loop doesn't iterate.