https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106087
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #12) Note this change is not fully correct as I need to check for PHIs too. as single_ssa_def_operand does not work on PHI nodes ... But I have a full patch in testing now.