[llvm-branch-commits] [llvm] [Vectorizer] fix GEPs incorrectly marked as "inbounds" (PR #120730)
Florian Mayer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Dec 20 06:13:15 PST 2024
================
@@ -1986,10 +1986,12 @@ void VPReverseVectorPointerRecipe::execute(VPTransformState &State) {
// LastLane = 1 - RunTimeVF
Value *LastLane = Builder.CreateSub(ConstantInt::get(IndexTy, 1), RunTimeVF);
Value *Ptr = State.get(getOperand(0), VPLane(0));
- Value *ResultPtr =
- Builder.CreateGEP(IndexedTy, Ptr, NumElt, "", getGEPNoWrapFlags());
- ResultPtr = Builder.CreateGEP(IndexedTy, ResultPtr, LastLane, "",
- getGEPNoWrapFlags());
+ Value *ResultPtr = Builder.CreateGEP(
+ IndexedTy, Ptr, NumElt, "",
+ getGEPNoWrapFlags().withoutInBounds().withoutNoUnsignedSignedWrap());
+ ResultPtr = Builder.CreateGEP(
+ IndexedTy, ResultPtr, LastLane, "",
+ getGEPNoWrapFlags().withoutInBounds().withoutNoUnsignedSignedWrap());
----------------
fmayer wrote:
sorry, i misread. now actually done
https://github.com/llvm/llvm-project/pull/120730
More information about the llvm-branch-commits
mailing list