Skip to content

Commit 3757dd5

Browse files
committed
Remove cast
1 parent ad49166 commit 3757dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8944,7 +8944,7 @@ VPRecipeBuilder::tryToCreatePartialReduction(Instruction *Reduction,
89448944
auto *const Zero = ConstantInt::get(Reduction->getType(), 0);
89458945
SmallVector<VPValue *, 2> Ops;
89468946
Ops.push_back(Plan.getOrAddLiveIn(Zero));
8947-
Ops.push_back(cast<VPWidenRecipe>(BinOp->getDefiningRecipe()));
8947+
Ops.push_back(BinOp);
89488948
BinOp = new VPWidenRecipe(*Reduction, make_range(Ops.begin(), Ops.end()));
89498949
ParentBlock->appendRecipe(BinOp->getDefiningRecipe());
89508950
ReductionOpcode = Instruction::Add;

0 commit comments

Comments
 (0)