Skip to content

Commit f11ad61

Browse files
committed
Use isa<VPPhi>
1 parent c170996 commit f11ad61

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ bool VPlanVerifier::verifyPhiRecipes(const VPBasicBlock *VPBB) {
7979
if (isa<VPActiveLaneMaskPHIRecipe>(RecipeI))
8080
NumActiveLaneMaskPhiRecipes++;
8181

82-
if (IsHeaderVPBB && !isa<VPHeaderPHIRecipe, VPWidenPHIRecipe>(*RecipeI) &&
83-
!(isa<VPInstruction>(*RecipeI) &&
84-
cast<VPInstruction>(RecipeI)->getOpcode() == Instruction::PHI)) {
82+
if (IsHeaderVPBB &&
83+
!isa<VPHeaderPHIRecipe, VPWidenPHIRecipe, VPPhi>(*RecipeI)) {
8584
errs() << "Found non-header PHI recipe in header VPBB";
8685
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
8786
errs() << ": ";

0 commit comments

Comments
 (0)