[SLP] Check invariant that all instructions in bundle are in same block [NFC]
authorPhilip Reames <listmail@philipreames.com>
Mon, 28 Feb 2022 21:17:35 +0000 (13:17 -0800)
committerPhilip Reames <listmail@philipreames.com>
Mon, 28 Feb 2022 21:17:44 +0000 (13:17 -0800)
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

index 1eab725..c614fd3 100644 (file)
@@ -2517,6 +2517,9 @@ private:
                  "only bundle is marked scheduled");
         }
       }
+
+      assert(Inst->getParent() == FirstInBundle->Inst->getParent() &&
+             "all bundle members must be in same basic block");
     }
 
     /// Returns true if the dependency information has been calculated.