Skip to content

Commit eb12867

Browse files
committed
VPlanTransforms: strip a cast
1 parent 1f7e5b0 commit eb12867

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
@@ -808,9 +808,9 @@ bool VPlanTransforms::adjustFixedOrderRecurrences(VPlan &Plan,
808808
LoopBuilder.setInsertPoint(InsertBlock,
809809
std::next(Previous->getIterator()));
810810

811-
auto *RecurSplice = cast<VPInstruction>(
811+
VPInstruction *RecurSplice =
812812
LoopBuilder.createNaryOp(VPInstruction::FirstOrderRecurrenceSplice,
813-
{FOR, FOR->getBackedgeValue()}));
813+
{FOR, FOR->getBackedgeValue()});
814814

815815
FOR->replaceAllUsesWith(RecurSplice);
816816
// Set the first operand of RecurSplice to FOR again, after replacing

0 commit comments

Comments
 (0)