[llvm] [VPlan] Track VPValue names in VPlan. (PR #81411)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 00:26:46 PDT 2024
================
@@ -1373,32 +1362,73 @@ VPInterleavedAccessInfo::VPInterleavedAccessInfo(VPlan &Plan,
visitRegion(Plan.getVectorLoopRegion(), Old2New, IAI);
}
-void VPSlotTracker::assignSlot(const VPValue *V) {
- if (V->getUnderlyingValue())
+void VPSlotTracker::assignSlotOrName(const VPValue *V) {
+ if (auto *UV = V->getUnderlyingValue()) {
----------------
ayalz wrote:
nit: else case is simpler to go first. (Name also suggests Slot goes first ;)
https://github.com/llvm/llvm-project/pull/81411
More information about the llvm-commits
mailing list