From 4fd0addb68f603112171a79353bc2a0f1d148183 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 14 Jul 2021 20:16:56 +0100 Subject: [PATCH] [SLP] Fix case of variable name. NFCI. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 58b5eee..b5ba896 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(VL0)->getAlign(); + Align Alignment = cast(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(V)->getAlign()); VecLdCost = TTI->getGatherScatterOpCost( Instruction::Load, VecTy, cast(VL0)->getPointerOperand(), - /*VariableMask=*/false, alignment, CostKind, VL0); + /*VariableMask=*/false, Alignment, CostKind, VL0); } if (!NeedToShuffleReuses && !E->ReorderIndices.empty()) { SmallVector NewMask; -- 2.7.4