[VPlan] Don't assign slots for external defs (NFCI).
authorFlorian Hahn <flo@fhahn.com>
Sun, 9 Apr 2023 20:01:10 +0000 (21:01 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sun, 9 Apr 2023 20:01:21 +0000 (21:01 +0100)
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.

llvm/lib/Transforms/Vectorize/VPlan.cpp

index 84f577f..4655399 100644 (file)
@@ -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);