https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113441
--- Comment #16 from Tamar Christina <tnfchris at gcc dot gnu.org> --- (In reply to rguent...@suse.de from comment #13) > > > You could check if we call this with sane values. > > > > Do you mean it's RISC-V backend cost model issue ? > > I responded to Tamar which means a aarch64 cost model issue - the > specific issue that the PHIs appear to have no cost. I didn't look > at any of the rest. Yeah, I'll be checking this separately and make a different issue if need be. (In reply to JuzheZhong from comment #14) > I just tried again both GCC-13.2 and GCC-14 with -fno-vect-cost-model. > > https://godbolt.org/z/enEG3qf5K > > GCC-14 requires scalar epilogue loop, whereas GCC-13.2 doesn't. > > I believe it's not cost model issue. Yes, my bisect originally stopped because of the costing change. I've started a new one with -fno-vect-cost-model but having trouble with the condition to check for. Will be back in a bit