[llvm] b3097eb - [SLP] Fix misspelling of 'analyzed'. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun May 15 10:39:38 PDT 2022


Author: Craig Topper
Date: 2022-05-15T10:30:24-07:00
New Revision: b3097eb6cda67f8f5ff0d2a77c3af530e1b6fe04

URL: https://github.com/llvm/llvm-project/commit/b3097eb6cda67f8f5ff0d2a77c3af530e1b6fe04
DIFF: https://github.com/llvm/llvm-project/commit/b3097eb6cda67f8f5ff0d2a77c3af530e1b6fe04.diff

LOG: [SLP] Fix misspelling of 'analyzed'. NFC

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 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<Instruction *> DeletedInstructions;
 
   /// Set of the instruction, being analyzed already for reductions.
-  SmallPtrSet<Instruction *, 16> AnalizedReductionsRoots;
+  SmallPtrSet<Instruction *, 16> AnalyzedReductionsRoots;
 
   /// Set of hashes for the list of reduction values already being analyzed.
   DenseSet<size_t> 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()));


        


More information about the llvm-commits mailing list