We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c170996 commit f11ad61Copy full SHA for f11ad61
llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
@@ -79,9 +79,8 @@ bool VPlanVerifier::verifyPhiRecipes(const VPBasicBlock *VPBB) {
79
if (isa<VPActiveLaneMaskPHIRecipe>(RecipeI))
80
NumActiveLaneMaskPhiRecipes++;
81
82
- if (IsHeaderVPBB && !isa<VPHeaderPHIRecipe, VPWidenPHIRecipe>(*RecipeI) &&
83
- !(isa<VPInstruction>(*RecipeI) &&
84
- cast<VPInstruction>(RecipeI)->getOpcode() == Instruction::PHI)) {
+ if (IsHeaderVPBB &&
+ !isa<VPHeaderPHIRecipe, VPWidenPHIRecipe, VPPhi>(*RecipeI)) {
85
errs() << "Found non-header PHI recipe in header VPBB";
86
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
87
errs() << ": ";
0 commit comments