[llvm] [AArch64][TTI] Improve `LegalVF` when computing gather-loads cost (PR #69617)

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 12:43:55 PDT 2023


================
@@ -2989,7 +2989,14 @@ InstructionCost AArch64TTIImpl::getGatherScatterOpCost(
       ElementCount::getScalable(1))
----------------
davemgreen wrote:

I think it might be worth treating !LT.second.isVector() the same as 1 x scalable vectors. Either that or something should be checking that the element type isElementTypeLegalForScalableVector.

https://github.com/llvm/llvm-project/pull/69617


More information about the llvm-commits mailing list