From 07484d249bcbd5a9cfc04305140979210a3e2ace Mon Sep 17 00:00:00 2001 From: Vasileios Porpodas Date: Tue, 2 May 2023 10:14:53 -0700 Subject: [PATCH] [NFC][SLP] Fix typo Differential Revision: https://reviews.llvm.org/D149670 --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index d5998bb..a037edb 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(Root) || isa(Root) || isa(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; -- 2.7.4