Skip to content

Commit

Permalink
[VPlan] Don't assign slots for external defs (NFCI).
Browse files Browse the repository at this point in the history
External defs are VPValues wrapping an IR value and hence will get
printed as ir<>. We don't need to assign a slot for a VPValue number.
  • Loading branch information
fhahn committed Apr 9, 2023
1 parent 3c83480 commit 0dbcbfe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions llvm/lib/Transforms/Vectorize/VPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,10 +1108,6 @@ void VPSlotTracker::assignSlot(const VPValue *V) {
}

void VPSlotTracker::assignSlots(const VPlan &Plan) {

for (const auto &P : Plan.VPExternalDefs)
assignSlot(P.second);

assignSlot(&Plan.VectorTripCount);
if (Plan.BackedgeTakenCount)
assignSlot(Plan.BackedgeTakenCount);
Expand Down

0 comments on commit 0dbcbfe

Please sign in to comment.