diff options
| author | Florian Hahn <flo@fhahn.com> | 2022-04-04 10:26:01 +0100 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2022-04-04 10:26:39 +0100 |
| commit | 1817c526e1540994035cb9c125e73443fdb96a80 (patch) | |
| tree | 825f917e4af0dabde7f53b6988aaad131e00f336 /llvm/lib/Transforms/Vectorize/VPlan.cpp | |
| parent | 5ccfd5f6d43069a5bc152b335bc704c6d2584ddc (diff) | |
[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.
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/VPlan.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp index 50ac8d72bf7e..c78752caa530 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) { |
