diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 830cc8d0217a4..cc0e164ab99fe 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -2049,13 +2049,13 @@ class BoUpSLP { /// Checks if the instruction was already analyzed for being possible /// reduction root. - bool isAnalizedReductionRoot(Instruction *I) const { - return AnalizedReductionsRoots.count(I); + bool isAnalyzedReductionRoot(Instruction *I) const { + return AnalyzedReductionsRoots.count(I); } /// Register given instruction as already analyzed for being possible /// reduction root. void analyzedReductionRoot(Instruction *I) { - AnalizedReductionsRoots.insert(I); + AnalyzedReductionsRoots.insert(I); } /// Checks if the provided list of reduced values was checked already for /// vectorization. @@ -2069,7 +2069,7 @@ class BoUpSLP { } /// Clear the list of the analyzed reduction root instructions. void clearReductionData() { - AnalizedReductionsRoots.clear(); + AnalyzedReductionsRoots.clear(); AnalyzedReductionVals.clear(); } /// Checks if the given value is gathered in one of the nodes. @@ -2662,7 +2662,7 @@ class BoUpSLP { DenseSet DeletedInstructions; /// Set of the instruction, being analyzed already for reductions. - SmallPtrSet AnalizedReductionsRoots; + SmallPtrSet AnalyzedReductionsRoots; /// Set of hashes for the list of reduction values already being analyzed. DenseSet AnalyzedReductionVals; @@ -11023,7 +11023,7 @@ static bool tryToVectorizeHorReductionOrInstOperands( auto &&TryToReduce = [TTI, &SE, &DL, &P, &R, &TLI](Instruction *Inst, Value *&B0, Value *&B1) -> Value * { - if (R.isAnalizedReductionRoot(Inst)) + if (R.isAnalyzedReductionRoot(Inst)) return nullptr; bool IsBinop = matchRdxBop(Inst, B0, B1); bool IsSelect = match(Inst, m_Select(m_Value(), m_Value(), m_Value()));