[llvm] 4fd0add - [SLP] Fix case of variable name. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 14 12:33:15 PDT 2021
Author: Simon Pilgrim
Date: 2021-07-14T20:20:04+01:00
New Revision: 4fd0addb68f603112171a79353bc2a0f1d148183
URL: https://github.com/llvm/llvm-project/commit/4fd0addb68f603112171a79353bc2a0f1d148183
DIFF: https://github.com/llvm/llvm-project/commit/4fd0addb68f603112171a79353bc2a0f1d148183.diff
LOG: [SLP] Fix case of variable name. NFCI.
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 58b5eee270cd..b5ba896b09f6 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -4074,26 +4074,26 @@ InstructionCost BoUpSLP::getEntryCost(const TreeEntry *E,
}
case Instruction::Load: {
// Cost of wide load - cost of scalar loads.
- Align alignment = cast<LoadInst>(VL0)->getAlign();
+ Align Alignment = cast<LoadInst>(VL0)->getAlign();
InstructionCost ScalarEltCost = TTI->getMemoryOpCost(
- Instruction::Load, ScalarTy, alignment, 0, CostKind, VL0);
+ Instruction::Load, ScalarTy, Alignment, 0, CostKind, VL0);
if (NeedToShuffleReuses) {
ReuseShuffleCost -= (ReuseShuffleNumbers - VL.size()) * ScalarEltCost;
}
InstructionCost ScalarLdCost = VecTy->getNumElements() * ScalarEltCost;
InstructionCost VecLdCost;
if (E->State == TreeEntry::Vectorize) {
- VecLdCost = TTI->getMemoryOpCost(Instruction::Load, VecTy, alignment, 0,
+ VecLdCost = TTI->getMemoryOpCost(Instruction::Load, VecTy, Alignment, 0,
CostKind, VL0);
} else {
assert(E->State == TreeEntry::ScatterVectorize && "Unknown EntryState");
- Align CommonAlignment = alignment;
+ Align CommonAlignment = Alignment;
for (Value *V : VL)
CommonAlignment =
commonAlignment(CommonAlignment, cast<LoadInst>(V)->getAlign());
VecLdCost = TTI->getGatherScatterOpCost(
Instruction::Load, VecTy, cast<LoadInst>(VL0)->getPointerOperand(),
- /*VariableMask=*/false, alignment, CostKind, VL0);
+ /*VariableMask=*/false, Alignment, CostKind, VL0);
}
if (!NeedToShuffleReuses && !E->ReorderIndices.empty()) {
SmallVector<int> NewMask;
More information about the llvm-commits
mailing list