https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121962
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I have a patch to fix this specific issue. I also have another patch which causes no longer have an infinite loop as since we forward propating the copy, since we don't touch the stmt that is being processed you don't need to reprocess it again. I actually had this yesterday and was trying to decide if this was needed and what order we should do stuff.