[llvm] [GISEL] Fix bugs in G_EXTRACT_SUBVECTOR definition (PR #108848)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 16:00:17 PDT 2024


================
@@ -1788,7 +1788,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
     }
 
     uint64_t SrcMinLen = SrcTy.getElementCount().getKnownMinValue();
-    if (SrcTy.isScalable() && DstTy.isScalable() &&
+    if (SrcTy.isScalable() == DstTy.isScalable() &&
----------------
topperc wrote:

We've gone in a circle. We need a `report` if `SrcTy.isScalable() != DstTy.isScalable()`

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


More information about the llvm-commits mailing list