[llvm] [LV] Add `-force-target-supports-masked-memory-ops` option (PR #184325)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 07:03:34 PST 2026


================
@@ -198,6 +198,11 @@ static cl::opt<unsigned> VectorizeMemoryCheckThreshold(
     "vectorize-memory-check-threshold", cl::init(128), cl::Hidden,
     cl::desc("The maximum allowed number of runtime memory checks"));
 
+static cl::opt<bool> ForceTargetSupportsMaskedMemoryOps(
+    "force-target-supports-masked-memory-ops", cl::init(false), cl::Hidden,
+    cl::desc("Assume the target supports masked memory operations (used for "
----------------
fhahn wrote:

```suggestion
    cl::desc("Assume the target supports masked `llvm.masked.load` and `llvm.masked.store` (used for "
```

May be worth clarifying which masked memory operation, as there are many others that are not impacted by the flags (masked gather/scatter, EVL men ops, masked histogram etc)

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


More information about the llvm-commits mailing list