Skip to content

Commit eb59fe8

Browse files
committed
[VPlan] Remove redundant assignment in VPReductionPHIRecipe (NFC)
Suggested post-commit for 0e528ac.
1 parent 958de20 commit eb59fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,7 @@ void VPReductionPHIRecipe::execute(VPTransformState &State) {
34133413
// TODO: The sentinel value is not always necessary. When the start value is
34143414
// a constant, and smaller than the start value of the induction variable,
34153415
// the start value can be directly used to initialize the reduction phi.
3416-
StartV = Iden = StartV;
3416+
Iden = StartV;
34173417
if (!ScalarPHI) {
34183418
IRBuilderBase::InsertPointGuard IPBuilder(Builder);
34193419
Builder.SetInsertPoint(VectorPH->getTerminator());

0 commit comments

Comments
 (0)