https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58517
--- Comment #19 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #18) > Created attachment 55250 [details] > This patch also fixes the issue by looking back > > Here is a patch which does the lookback if the reg is a hard register and it > is considered a small reg class. Note with this version of the patch, you need to disable check against currently_expanding_to_rtl in movsicc too. Otherwise you won't get the ifcvt happening in general.