https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121370
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2025-08-02
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. EVRP starting in GCC 9 miscompiles the loop; first into an infinite
loop and then complete unroll comes along and turns it into unreachable.
But as far as I can tell there is no undefined behavior here.