@@ -9285,7 +9285,6 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
9285
9285
continue ;
9286
9286
9287
9287
const RecurrenceDescriptor &RdxDesc = PhiR->getRecurrenceDescriptor ();
9288
- StoreInst *IntermediateStore = RdxDesc.IntermediateStore ;
9289
9288
// Adjust AnyOf reductions; replace the reduction phi for the selected value
9290
9289
// with a boolean reduction phi node to check if the condition is true in
9291
9290
// any iteration. The final value is selected by the final
@@ -9387,13 +9386,10 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
9387
9386
// also modeled in VPlan.
9388
9387
auto *FinalReductionResult = new VPInstruction (
9389
9388
VPInstruction::ComputeReductionResult, {PhiR, NewExitingVPV}, ExitDL);
9390
- FinalReductionResult->insertBefore (*MiddleVPBB, IP);
9391
- auto *FinalReductionResult = new VPInstruction (
9392
- VPInstruction::ComputeReductionResult, {PhiR, NewExitingVPV}, ExitDL);
9393
9389
// Update all users outside the vector region.
9394
9390
OrigExitingVPV->replaceUsesWithIf (
9395
9391
FinalReductionResult, [](VPUser &User, unsigned ) {
9396
- auto *Parent = cast<VPRecipeBase>(&User)->getParent ();
9392
+ auto *Parent = cast<VPRecipeBase>(&User)->getParent ();
9397
9393
return Parent && !Parent->getParent ();
9398
9394
});
9399
9395
FinalReductionResult->insertBefore (*MiddleVPBB, IP);
0 commit comments