Skip to content

Commit 456f398

Browse files
committed
Format
1 parent c8f157e commit 456f398

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,18 +2573,18 @@ void VPlanTransforms::convertToStridedAccesses(VPlan &Plan, VPCostContext &Ctx,
25732573
auto *GEP = dyn_cast<GetElementPtrInst>(
25742574
Ptr->getUnderlyingValue()->stripPointerCasts());
25752575
// Create a new vector pointer for strided access.
2576-
auto *NewPtr = new VPVectorPointerRecipe(
2577-
Ptr, ElementTy, /*Stride=*/ true,
2578-
GEP ? GEP->getNoWrapFlags() : GEPNoWrapFlags::none(),
2579-
VecEndPtr->getDebugLoc());
2576+
auto *NewPtr = new VPVectorPointerRecipe(Ptr, ElementTy, /*Stride=*/true,
2577+
GEP ? GEP->getNoWrapFlags()
2578+
: GEPNoWrapFlags::none(),
2579+
VecEndPtr->getDebugLoc());
25802580
NewPtr->insertBefore(MemR);
25812581

25822582
auto *LoadR = cast<VPWidenLoadRecipe>(MemR);
25832583
auto *LI = cast<LoadInst>(&Ingredient);
25842584
const DataLayout &DL = LI->getDataLayout();
25852585
auto *StrideTy = DL.getIndexType(LI->getPointerOperand()->getType());
2586-
VPValue *StrideVPV = Plan.getOrAddLiveIn(ConstantInt::get(
2587-
StrideTy, Stride * DL.getTypeAllocSize(ElementTy)));
2586+
VPValue *StrideVPV = Plan.getOrAddLiveIn(
2587+
ConstantInt::get(StrideTy, Stride * DL.getTypeAllocSize(ElementTy)));
25882588
auto *StridedLoad = new VPWidenStridedLoadRecipe(
25892589
*LI, NewPtr, StrideVPV, &Plan.getVF(), LoadR->getMask(), *LoadR,
25902590
LoadR->getDebugLoc());

0 commit comments

Comments
 (0)