[llvm] 07484d2 - [NFC][SLP] Fix typo

Vasileios Porpodas via llvm-commits llvm-commits at lists.llvm.org
Tue May 2 11:15:46 PDT 2023


Author: Vasileios Porpodas
Date: 2023-05-02T11:14:08-07:00
New Revision: 07484d249bcbd5a9cfc04305140979210a3e2ace

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

LOG: [NFC][SLP] Fix typo

Differential Revision: https://reviews.llvm.org/D149670

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 d5998bbd2c0e..a037edb691cc 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -13982,8 +13982,8 @@ static bool matchRdxBop(Instruction *I, Value *&V0, Value *&V1) {
 ///  r *= v1 + v2 + v3 + v4
 /// In such a case start looking for a tree rooted in the first '+'.
 /// \Returns the new root if found, which may be nullptr if not an instruction.
-static Instruction *tryGetScondaryReductionRoot(PHINode *Phi,
-                                                Instruction *Root) {
+static Instruction *tryGetSecondaryReductionRoot(PHINode *Phi,
+                                                 Instruction *Root) {
   assert((isa<BinaryOperator>(Root) || isa<SelectInst>(Root) ||
           isa<IntrinsicInst>(Root)) &&
          "Expected binop, select, or intrinsic for reduction matching");
@@ -14033,7 +14033,7 @@ bool SLPVectorizerPass::vectorizeHorReduction(
       assert((!P || is_contained(P->operands(), Inst)) &&
              "Phi needs to use the binary operator");
       if (P && HorizontalReduction::getRdxKind(Inst) != RecurKind::None)
-        if (Instruction *NewRoot = tryGetScondaryReductionRoot(P, Inst))
+        if (Instruction *NewRoot = tryGetSecondaryReductionRoot(P, Inst))
           Inst = NewRoot;
 
       HorizontalReduction HorRdx;


        


More information about the llvm-commits mailing list