Skip to content

Commit cff198a

Browse files
committed
Remove assert in isExitBlock
1 parent 9432e60 commit cff198a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -957,14 +957,7 @@ void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
957957
}
958958

959959
bool VPlan::isExitBlock(VPBlockBase *VPBB) {
960-
if (isa<VPIRBasicBlock>(VPBB) && VPBB->getNumSuccessors() == 0) {
961-
[[maybe_unused]] auto ExitBlocks = getExitBlocks();
962-
assert(is_contained(ExitBlocks, VPBB) &&
963-
"Expected to find VPlan block in list of exit blocks!");
964-
return true;
965-
}
966-
967-
return false;
960+
return isa<VPIRBasicBlock>(VPBB) && VPBB->getNumSuccessors() == 0;
968961
}
969962

970963
/// Generate the code inside the preheader and body of the vectorized loop.

0 commit comments

Comments
 (0)