Skip to content

Commit b6d994d

Browse files
committed
[VPlan] Address post-commit suggestions for af635a5 (NFC).
1 parent e8efe7f commit b6d994d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ class VPRecipeWithIRFlags : public VPRecipeBase {
969969

970970
bool hasNoSignedWrap() const {
971971
assert(OpType == OperationType::OverflowingBinOp &&
972-
"recipe doesn't have a NUW flag");
972+
"recipe doesn't have a NSW flag");
973973
return WrapFlags.HasNSW;
974974
}
975975

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ Value *VPInstruction::generateInstruction(VPTransformState &State,
320320
// The canonical IV is incremented by the vectorization factor (num of SIMD
321321
// elements) times the unroll part.
322322
Value *Step = createStepForVF(Builder, IV->getType(), State.VF, Part);
323-
return Builder.CreateAdd(IV, Step, Name, hasNoUnsignedWrap(), false);
323+
return Builder.CreateAdd(IV, Step, Name, hasNoUnsignedWrap(),
324+
hasNoSignedWrap());
324325
}
325326
case VPInstruction::BranchOnCond: {
326327
if (Part != 0)

0 commit comments

Comments
 (0)