[llvm] [LV] Use isLegalMaskedLoadOrStore for interleaved accesses too (NFC) (PR #195243)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 02:47:41 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))
----------------
fhahn wrote:
Yes, the overall logic is the same. But it would be good to update the documentation to explain the new expectation (caller must check)
https://github.com/llvm/llvm-project/pull/195243
More information about the llvm-commits
mailing list