[LV] Remove reference of PHI from comment, they are not recorded (NFC).

The comment incorrectly states that the PHI is recorded. That's not
accurate, only the recipe for the incoming value is recorded.

Suggested post-commit for 4ba8720f88.
This commit is contained in:
Florian Hahn 2021-05-07 21:30:54 +01:00
parent 3822ac909e
commit 75b9997760
No known key found for this signature in database
GPG Key ID: 5967502C5AE88DAD
1 changed files with 2 additions and 3 deletions

View File

@ -8900,11 +8900,10 @@ VPRecipeBuilder::tryToCreateWidenRecipe(Instruction *Instr,
Phi->getIncomingValueForBlock(OrigLoop->getLoopPreheader())); Phi->getIncomingValueForBlock(OrigLoop->getLoopPreheader()));
VPValue *StartV = Operands[0]; VPValue *StartV = Operands[0];
// Record the PHI and the incoming value from the backedge, so we can add
// the incoming value from the backedge after all recipes have been
// created.
auto *PhiRecipe = new VPWidenPHIRecipe(Phi, RdxDesc, *StartV); auto *PhiRecipe = new VPWidenPHIRecipe(Phi, RdxDesc, *StartV);
PhisToFix.push_back(PhiRecipe); PhisToFix.push_back(PhiRecipe);
// Record the incoming value from the backedge, so we can add the incoming
// value from the backedge after all recipes have been created.
recordRecipeOf(cast<Instruction>( recordRecipeOf(cast<Instruction>(
Phi->getIncomingValueForBlock(OrigLoop->getLoopLatch()))); Phi->getIncomingValueForBlock(OrigLoop->getLoopLatch())));
return toVPRecipeResult(PhiRecipe); return toVPRecipeResult(PhiRecipe);