Skip to content

Commit 600624a

Browse files
committed
[LoopVersion] Move an assert [nfc-ish]
1 parent 74d6ce5 commit 600624a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/LoopVersioning.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ LoopVersioning::LoopVersioning(const LoopAccessInfo &LAI,
4444
AliasChecks(Checks.begin(), Checks.end()),
4545
Preds(LAI.getPSE().getUnionPredicate()), LAI(LAI), LI(LI), DT(DT),
4646
SE(SE) {
47-
assert(L->getUniqueExitBlock() && "No single exit block");
4847
}
4948

5049
void LoopVersioning::versionLoop(
5150
const SmallVectorImpl<Instruction *> &DefsUsedOutside) {
51+
assert(VersionedLoop->getUniqueExitBlock() && "No single exit block");
5252
assert(VersionedLoop->isLoopSimplifyForm() &&
5353
"Loop is not in loop-simplify form");
5454

0 commit comments

Comments
 (0)