Skip to content

Commit 5eccd71

Browse files
committed
[VPlan] Add assertion ensuring Plan's UF matches BestUF (NFC).
1 parent 48864a5 commit 5eccd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ void VPlanTransforms::optimizeForVFAndUF(VPlan &Plan, ElementCount BestVF,
11541154
Term->eraseFromParent();
11551155

11561156
Plan.setVF(BestVF);
1157-
Plan.setUF(BestUF);
1157+
assert(Plan.getUF() == BestUF && "BestUF must match the Plan's UF");
11581158
// TODO: Further simplifications are possible
11591159
// 1. Replace inductions with constants.
11601160
// 2. Replace vector loop region with VPBasicBlock.

0 commit comments

Comments
 (0)