Skip to content

Commit 1a5a1e9

Browse files
committed
[VPlan] Assert that VFxUF is always used.
Add assertion to ensure invariant discussed in #95305.
1 parent 1f2a634 commit 1a5a1e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
934934

935935
IRBuilder<> Builder(State.CFG.PrevBB->getTerminator());
936936
// FIXME: Model VF * UF computation completely in VPlan.
937+
assert(VFxUF.getNumUsers() && "VFxUF expected to always have users");
937938
VFxUF.setUnderlyingValue(
938939
createStepForVF(Builder, TripCountV->getType(), State.VF, State.UF));
939940

0 commit comments

Comments
 (0)