[llvm] [LV] Introduce isLegalMaskedLoadOrStore (NFC) (PR #195242)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 02:56:28 PDT 2026
=?utf-8?q?Ga=C3=ABtan?= Bossu <gaetan.bossu at arm.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/195242 at github.com>
================
@@ -650,15 +650,9 @@ class VFSelectionContext {
/// of FP operations.
bool useOrderedReductions(const RecurrenceDescriptor &RdxDesc) const;
- /// Returns true if the target machine supports masked store operation
- /// for the given \p DataType and kind of access to \p Ptr.
- bool isLegalMaskedStore(Type *DataType, Value *Ptr, Align Alignment,
- unsigned AddressSpace) const;
-
- /// Returns true if the target machine supports masked load operation
- /// for the given \p DataType and kind of access to \p Ptr.
- bool isLegalMaskedLoad(Type *DataType, Value *Ptr, Align Alignment,
- unsigned AddressSpace) const;
+ /// Returns true if the target machine can represent \p I as a masked load
+ /// or store.
+ bool isLegalMaskedLoadOrStore(Instruction *I, ElementCount VF) const;
----------------
david-arm wrote:
Sure, that's fine.
https://github.com/llvm/llvm-project/pull/195242
More information about the llvm-commits
mailing list