Skip to content

Commit eb70f43

Browse files
committed
Directly use flags from WidenGEP
1 parent 2064369 commit eb70f43

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4640,10 +4640,8 @@ void VPlanTransforms::convertToStridedAccesses(VPlan &Plan, VPCostContext &Ctx,
46404640
assert(StrideInElement && ElementTy);
46414641

46424642
// Create a new vector pointer for strided access.
4643-
auto *GEP = dyn_cast<GetElementPtrInst>(PtrUV->stripPointerCasts());
46444643
auto *NewPtr = new VPVectorPointerRecipe(
4645-
BasePtr, ElementTy, StrideInElement,
4646-
GEP ? GEP->getNoWrapFlags() : GEPNoWrapFlags::none(),
4644+
BasePtr, ElementTy, StrideInElement, Ptr->getGEPNoWrapFlags(),
46474645
Ptr->getDebugLoc());
46484646
NewPtr->insertBefore(MemR);
46494647

0 commit comments

Comments
 (0)