[llvm-branch-commits] [llvm] 37d0dda - [SLP] fix typo; NFC
Sanjay Patel via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Dec 18 14:00:34 PST 2020
Author: Sanjay Patel
Date: 2020-12-18T16:55:52-05:00
New Revision: 37d0dda739aa5ebc1ad8cca8c570788b2a3ef5cf
URL: https://github.com/llvm/llvm-project/commit/37d0dda739aa5ebc1ad8cca8c570788b2a3ef5cf
DIFF: https://github.com/llvm/llvm-project/commit/37d0dda739aa5ebc1ad8cca8c570788b2a3ef5cf.diff
LOG: [SLP] fix typo; 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 9ab89e091596..80d510185470 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -6911,12 +6911,12 @@ class HorizontalReduction {
ReductionData.initReductionOps(ReductionOps);
while (!Stack.empty()) {
Instruction *TreeN = Stack.back().first;
- unsigned EdgeToVist = Stack.back().second++;
+ unsigned EdgeToVisit = Stack.back().second++;
OperationData OpData = getOperationData(TreeN);
bool IsReducedValue = OpData != ReductionData;
// Postorder vist.
- if (IsReducedValue || EdgeToVist == OpData.getNumberOfOperands()) {
+ if (IsReducedValue || EdgeToVisit == OpData.getNumberOfOperands()) {
if (IsReducedValue)
ReducedVals.push_back(TreeN);
else {
@@ -6942,7 +6942,7 @@ class HorizontalReduction {
}
// Visit left or right.
- Value *NextV = TreeN->getOperand(EdgeToVist);
+ Value *NextV = TreeN->getOperand(EdgeToVisit);
if (NextV != Phi) {
auto *I = dyn_cast<Instruction>(NextV);
OpData = getOperationData(I);
More information about the llvm-branch-commits
mailing list