Skip to content

Commit 927a66d

Browse files
committed
!fixup update verifier
1 parent df6894a commit 927a66d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,16 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) {
185185
RecipeNumbering[&R] = Cnt++;
186186

187187
for (const VPRecipeBase &R : *VPBB) {
188+
if (isa<VPIRInstruction>(&R) && !isa<VPIRBasicBlock>(VPBB)) {
189+
errs() << "VPIRInstructions ";
190+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
191+
R.dump();
192+
errs() << " ";
193+
#endif
194+
errs() << "not in a VPIRBasicBlock!\n";
195+
return false;
196+
}
197+
188198
for (const VPValue *V : R.definedValues()) {
189199
for (const VPUser *U : V->users()) {
190200
auto *UI = dyn_cast<VPRecipeBase>(U);

0 commit comments

Comments
 (0)