https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115819
--- Comment #6 from Robin Dapp <rdapp at gcc dot gnu.org> --- (In reply to JuzheZhong from comment #4) > (In reply to Andrew Pinski from comment #1) > > This might be a cost issue. > > No. I don't it's cost issue. > It's because we suppress the hoist by incorrect POLY INT handling codes. > > I have a patch to fix it: > > https://gcc.gnu.org/pipermail/gcc-patches/2024-February/644706.html > > But it seems to produce ICEs... I re-tried your patch on the latest trunk and cannot reproduce the ICE anymore, not even with -fno-vect-cost-model. Going to do a regression run and, if positive, apply your patch as it is already approved.
