https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58195
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #11) > (In reply to Andrew Pinski from comment #10) > > I am going to implement that first and then implement the phiopt change. > > RTL Patch submitted: > https://gcc.gnu.org/pipermail/gcc-patches/2024-October/665954.html > > Will handle the phiopt/factor patch next. I just noticed that the rtl patch actually will fix it everywhere too due to noce_try_ifelse_collapse (which was added with r7-1275-g36f9ad69336aee aka PR 37780).