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

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 12:56:29 PDT 2023


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

If we bail out when `isLegalMaskedGather` returns false, which indeed would happen with such types, – as per @alexey-bataev suggestion above – I don't think we would ever be reaching this point.

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


More information about the llvm-commits mailing list