Skip to content

Commit 60bf6d3

Browse files
committed
!fixup inline load again, thanks
1 parent 1a3beda commit 60bf6d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2783,10 +2783,9 @@ void VPlanTransforms::narrowInterleaveGroups(VPlan &Plan, ElementCount VF,
27832783
if (auto *LoadGroup = dyn_cast<VPInterleaveRecipe>(R)) {
27842784
// Narrow interleave group to wide load, as transformed VPlan will only
27852785
// process one original iteration.
2786-
auto &LI =
2787-
*cast<LoadInst>(LoadGroup->getInterleaveGroup()->getInsertPos());
27882786
auto *L = new VPWidenLoadRecipe(
2789-
LI, LoadGroup->getAddr(), LoadGroup->getMask(), /*Consecutive=*/true,
2787+
*cast<LoadInst>(LoadGroup->getInterleaveGroup()->getInsertPos()),
2788+
LoadGroup->getAddr(), LoadGroup->getMask(), /*Consecutive=*/true,
27902789
/*Reverse=*/false, {}, LoadGroup->getDebugLoc());
27912790
L->insertBefore(LoadGroup);
27922791
return L;

0 commit comments

Comments
 (0)