[llvm] [InterleavedAccessPass] Pass modifies its input and doesn't report it (PR #198773)

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu May 21 08:54:33 PDT 2026


================
@@ -395,9 +413,10 @@ bool InterleavedAccessImpl::lowerInterleavedLoad(
   // Try to create target specific intrinsics to replace the load and
   // shuffles.
   if (!TLI->lowerInterleavedLoad(cast<Instruction>(Load), Mask, Shuffles,
-                                 Indices, Factor, GapMask))
-    // If Extracts is not empty, tryReplaceExtracts made changes earlier.
-    return !Extracts.empty() || BinOpShuffleChanged;
+                                 Indices, Factor, GapMask)) {
+    eraseDeadMaskInstructions(Mask);
+    return hasMutatedIR();
----------------
davemgreen wrote:

Is it worth being conservative and returning true from here as we might have changed the IR by removing dead Masks. We could have all these functions just return true as "MayChanged" if they might have changed the IR.

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


More information about the llvm-commits mailing list