Skip to content

Commit 6c169e0

Browse files
committed
!fixup use ::isHeader in VPlan verifier.
1 parent 45042a4 commit 6c169e0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ bool VPlanVerifier::verifyPhiRecipes(const VPBasicBlock *VPBB) {
7373
auto RecipeI = VPBB->begin();
7474
auto End = VPBB->end();
7575
unsigned NumActiveLaneMaskPhiRecipes = 0;
76-
const VPRegionBlock *ParentR = VPBB->getParent();
77-
bool IsHeaderVPBB = ParentR && !ParentR->isReplicator() &&
78-
ParentR->getEntryBasicBlock() == VPBB;
76+
bool IsHeaderVPBB = VPBlockUtils::isHeader(VPBB, VPDT);
7977
while (RecipeI != End && RecipeI->isPhi()) {
8078
if (isa<VPActiveLaneMaskPHIRecipe>(RecipeI))
8179
NumActiveLaneMaskPhiRecipes++;

0 commit comments

Comments
 (0)