mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 09:16:31 +00:00
[VPlan] Address post-commit suggestions for af635a554 (NFC).
This commit is contained in:
parent
e8efe7f9d1
commit
b6d994de0f
@ -969,7 +969,7 @@ public:
|
||||
|
||||
bool hasNoSignedWrap() const {
|
||||
assert(OpType == OperationType::OverflowingBinOp &&
|
||||
"recipe doesn't have a NUW flag");
|
||||
"recipe doesn't have a NSW flag");
|
||||
return WrapFlags.HasNSW;
|
||||
}
|
||||
|
||||
|
@ -320,7 +320,8 @@ Value *VPInstruction::generateInstruction(VPTransformState &State,
|
||||
// The canonical IV is incremented by the vectorization factor (num of SIMD
|
||||
// elements) times the unroll part.
|
||||
Value *Step = createStepForVF(Builder, IV->getType(), State.VF, Part);
|
||||
return Builder.CreateAdd(IV, Step, Name, hasNoUnsignedWrap(), false);
|
||||
return Builder.CreateAdd(IV, Step, Name, hasNoUnsignedWrap(),
|
||||
hasNoSignedWrap());
|
||||
}
|
||||
case VPInstruction::BranchOnCond: {
|
||||
if (Part != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user