[PATCH] D149670: [NFC][SLP] Fix typo
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 10:52:20 PDT 2023
vporpo created this revision.
vporpo added a reviewer: ABataev.
Herald added a subscriber: hiraditya.
Herald added a project: All.
vporpo requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149670
Files:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Index: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
===================================================================
--- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -13982,8 +13982,8 @@
/// 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 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149670.518797.patch
Type: text/x-patch
Size: 1303 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230502/96c734e5/attachment.bin>
More information about the llvm-commits
mailing list