[llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 11 03:48:31 PST 2025


================
@@ -2108,7 +2160,8 @@ Value *llvm::addDiffRuntimeChecks(
   // Map to keep track of created compares, The key is the pair of operands for
   // the compare, to allow detecting and re-using redundant compares.
   DenseMap<std::pair<Value *, Value *>, Value *> SeenCompares;
-  for (const auto &[SrcStart, SinkStart, AccessSize, NeedsFreeze] : Checks) {
+  for (const auto &[SrcStart, SinkStart, AccessSize, NeedsFreeze,
+                    WriteAfterRead] : Checks) {
----------------
sdesmalen-arm wrote:

nit: `WriteAfterRead` is unused, so you can write `_` (because it's ignored).

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


More information about the llvm-commits mailing list