[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
Wed Oct 9 11:11:28 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:
should this assert that Factor == 2 for SVE to guard against accidentally returning an incorrect non-invalid cost? Same for RISCV
https://github.com/llvm/llvm-project/pull/111592
More information about the llvm-commits
mailing list