[llvm] [LV] Use isLegalMaskedLoadOrStore for interleaved accesses too (NFC) (PR #195243)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 02:10:08 PDT 2026
================
@@ -62,14 +62,10 @@ static cl::opt<bool> ForceTargetSupportsMaskedMemoryOps(
bool VFSelectionContext::isLegalMaskedLoadOrStore(Instruction *I,
ElementCount VF) const {
assert(isa<LoadInst>(I) || isa<StoreInst>(I));
- auto *Ptr = getLoadStorePointerOperand(I);
auto *Ty = getLoadStoreType(I);
const unsigned AS = getLoadStoreAddressSpace(I);
const Align Alignment = getLoadStoreAlignment(I);
- if (!Legal->isConsecutivePtr(Ty, Ptr))
----------------
sdesmalen-arm wrote:
I think this can keep the `isConsecutivePtr` check. (My comment on the other PR was more to remove the check for `isInterleaved()`, which has now been removed).
https://github.com/llvm/llvm-project/pull/195243
More information about the llvm-commits
mailing list