[llvm] [IA] Fix crash when dealing with deinterleave(interleave) (PR #150713)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 25 21:12:46 PDT 2025


================
@@ -382,8 +382,11 @@ bool InterleavedAccessImpl::lowerInterleavedLoad(
   if (LI) {
     LLVM_DEBUG(dbgs() << "IA: Found an interleaved load: " << *Load << "\n");
   } else {
+    Value *MaskOperand = getMaskOperand(II);
+    if (!MaskOperand)
+      llvm_unreachable("unsupported intrinsic");
----------------
topperc wrote:

I we do it this way, I would use an `assert` here.

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


More information about the llvm-commits mailing list