[VPlan] Remove redundant assignment in VPReductionPHIRecipe (NFC)

Suggested post-commit for 0e528ac404e13ed2d952a2d83aaf8383293c851e.
This commit is contained in:
Florian Hahn 2024-12-17 21:32:40 +00:00
parent 958de20b30
commit eb59fe8d04
No known key found for this signature in database
GPG Key ID: 9E54DEA47A8F4434

View File

@ -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());