Skip to content

Commit

Permalink
[VPlan] Remove redundant assignment in VPReductionPHIRecipe (NFC)
Browse files Browse the repository at this point in the history
Suggested post-commit for 0e528ac.
  • Loading branch information
fhahn committed Dec 17, 2024
1 parent 958de20 commit eb59fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3413,7 +3413,7 @@ void VPReductionPHIRecipe::execute(VPTransformState &State) {
// TODO: The sentinel value is not always necessary. When the start value is
// a constant, and smaller than the start value of the induction variable,
// the start value can be directly used to initialize the reduction phi.
StartV = Iden = StartV;
Iden = StartV;
if (!ScalarPHI) {
IRBuilderBase::InsertPointGuard IPBuilder(Builder);
Builder.SetInsertPoint(VectorPH->getTerminator());
Expand Down

0 comments on commit eb59fe8

Please sign in to comment.