[llvm] 1817c52 - [VPlan] Update VPInterleavedAccessInfo to use getVectorLoopRegion.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 4 02:27:09 PDT 2022
Author: Florian Hahn
Date: 2022-04-04T10:26:39+01:00
New Revision: 1817c526e1540994035cb9c125e73443fdb96a80
URL: https://github.com/llvm/llvm-project/commit/1817c526e1540994035cb9c125e73443fdb96a80
DIFF: https://github.com/llvm/llvm-project/commit/1817c526e1540994035cb9c125e73443fdb96a80.diff
LOG: [VPlan] Update VPInterleavedAccessInfo to use getVectorLoopRegion.
Update VPInterleavedAccessInfo to use the generic getVectorLoopRegion
helper instead of relying on the entry block being the top-most vector
loop region.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index 50ac8d72bf7e1..c78752caa530a 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -1702,7 +1702,7 @@ void VPInterleavedAccessInfo::visitBlock(VPBlockBase *Block, Old2NewTy &Old2New,
VPInterleavedAccessInfo::VPInterleavedAccessInfo(VPlan &Plan,
InterleavedAccessInfo &IAI) {
Old2NewTy Old2New;
- visitRegion(cast<VPRegionBlock>(Plan.getEntry()), Old2New, IAI);
+ visitRegion(Plan.getVectorLoopRegion(), Old2New, IAI);
}
void VPSlotTracker::assignSlot(const VPValue *V) {
More information about the llvm-commits
mailing list