Skip to content

Commit 4f3acf0

Browse files
committed
Move comment to flags
1 parent 7cf85b9 commit 4f3acf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,6 +2554,8 @@ expandVPWidenIntOrFpInduction(VPWidenIntOrFpInductionRecipe *WidenIVR,
25542554
const InductionDescriptor &ID = WidenIVR->getInductionDescriptor();
25552555
Instruction::BinaryOps AddOp;
25562556
Instruction::BinaryOps MulOp;
2557+
// FIXME: The newly created binary instructions should contain nsw/nuw
2558+
// flags, which can be found from the original scalar operations.
25572559
VPIRFlags Flags;
25582560
if (ID.getKind() == InductionDescriptor::IK_IntInduction) {
25592561
AddOp = Instruction::Add;
@@ -2584,8 +2586,6 @@ expandVPWidenIntOrFpInduction(VPWidenIntOrFpInductionRecipe *WidenIVR,
25842586
VPValue *SplatStart = Builder.createNaryOp(VPInstruction::Broadcast, Start);
25852587
VPValue *SplatStep = Builder.createNaryOp(VPInstruction::Broadcast, Step);
25862588

2587-
// FIXME: The newly created binary instructions should contain nsw/nuw
2588-
// flags, which can be found from the original scalar operations.
25892589
Init = Builder.createNaryOp(MulOp, {Init, SplatStep}, Flags);
25902590
Init =
25912591
Builder.createNaryOp(AddOp, {SplatStart, Init}, Flags, {}, "induction");

0 commit comments

Comments
 (0)