[llvm] [LV] Check early for supported interleave factors with scalable types [nfc] (PR #111592)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 12:22:53 PDT 2024


================
@@ -3743,7 +3743,7 @@ InstructionCost AArch64TTIImpl::getInterleavedMemoryOpCost(
   assert(Factor >= 2 && "Invalid interleave factor");
   auto *VecVTy = cast<VectorType>(VecTy);
 
-  if (VecTy->isScalableTy() && (!ST->hasSVE() || Factor != 2))
+  if (VecTy->isScalableTy() && !ST->hasSVE())
----------------
fhahn wrote:

Thanks for checking & clarifying @preames, just wanted to make sure to fully understand what's going on and make sure the costs returned should be reasonable when dropping the early exit.

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


More information about the llvm-commits mailing list