https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64119
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is the part that matters in this case: References to local register variables may be deleted or moved or simplified. In this case they are moved and simplified.