Skip to content

Commit 33939d8

Browse files
committed
Rename variables
1 parent a03afa7 commit 33939d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8996,13 +8996,13 @@ VPRecipeBuilder::tryToCreatePartialReduction(Instruction *Reduction,
89968996
"Unexpected number of operands for partial reduction");
89978997

89988998
VPValue *BinOp = Operands[0];
8999-
VPValue *Phi = Operands[1];
8999+
VPValue *Accumulator = Operands[1];
90009000
VPRecipeBase *BinOpRecipe = BinOp->getDefiningRecipe();
90019001
if (isa<VPReductionPHIRecipe>(BinOpRecipe) ||
90029002
isa<VPPartialReductionRecipe>(BinOpRecipe))
9003-
std::swap(BinOp, Phi);
9003+
std::swap(BinOp, Accumulator);
90049004

9005-
return new VPPartialReductionRecipe(Reduction->getOpcode(), BinOp, Phi,
9005+
return new VPPartialReductionRecipe(Reduction->getOpcode(), BinOp, Accumulator,
90069006
Reduction);
90079007
}
90089008

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,9 +2453,9 @@ class VPPartialReductionRecipe : public VPSingleDefRecipe {
24532453
: VPSingleDefRecipe(VPDef::VPPartialReductionSC,
24542454
ArrayRef<VPValue *>({Op0, Op1}), ReductionInst),
24552455
Opcode(Opcode) {
2456-
auto *DefiningRecipe = getOperand(1)->getDefiningRecipe();
2457-
assert((isa<VPReductionPHIRecipe>(DefiningRecipe) ||
2458-
isa<VPPartialReductionRecipe>(DefiningRecipe)) &&
2456+
auto *AccumulatorRecipe = getOperand(1)->getDefiningRecipe();
2457+
assert((isa<VPReductionPHIRecipe>(AccumulatorRecipe) ||
2458+
isa<VPPartialReductionRecipe>(AccumulatorRecipe)) &&
24592459
"Unexpected operand order for partial reduction recipe");
24602460
}
24612461
~VPPartialReductionRecipe() override = default;

0 commit comments

Comments
 (0)