Skip to content

Commit

Permalink
[SLP] Fix spelling in a lambda name [NFC]
Browse files Browse the repository at this point in the history
  • Loading branch information
preames committed Mar 8, 2022
1 parent 018ad03 commit 8ab3bef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Expand Up @@ -7744,7 +7744,7 @@ bool BoUpSLP::BlockScheduling::extendSchedulingRegion(Value *V,
assert(!isa<PHINode>(I) && !isVectorLikeInstWithConstOps(I) &&
"phi nodes/insertelements/extractelements/extractvalues don't need to "
"be scheduled");
auto &&CheckSheduleForI = [this, &S](Instruction *I) -> bool {
auto &&CheckScheduleForI = [this, &S](Instruction *I) -> bool {
ScheduleData *ISD = getScheduleData(I);
if (!ISD)
return false;
Expand All @@ -7756,15 +7756,15 @@ bool BoUpSLP::BlockScheduling::extendSchedulingRegion(Value *V,
ExtraScheduleDataMap[I][S.OpValue] = SD;
return true;
};
if (CheckSheduleForI(I))
if (CheckScheduleForI(I))
return true;
if (!ScheduleStart) {
// It's the first instruction in the new region.
initScheduleData(I, I->getNextNode(), nullptr, nullptr);
ScheduleStart = I;
ScheduleEnd = I->getNextNode();
if (isOneOf(S, I) != I)
CheckSheduleForI(I);
CheckScheduleForI(I);
assert(ScheduleEnd && "tried to vectorize a terminator?");
LLVM_DEBUG(dbgs() << "SLP: initialize schedule region to " << *I << "\n");
return true;
Expand Down Expand Up @@ -7792,7 +7792,7 @@ bool BoUpSLP::BlockScheduling::extendSchedulingRegion(Value *V,
initScheduleData(I, ScheduleStart, nullptr, FirstLoadStoreInRegion);
ScheduleStart = I;
if (isOneOf(S, I) != I)
CheckSheduleForI(I);
CheckScheduleForI(I);
LLVM_DEBUG(dbgs() << "SLP: extend schedule region start to " << *I
<< "\n");
return true;
Expand All @@ -7806,7 +7806,7 @@ bool BoUpSLP::BlockScheduling::extendSchedulingRegion(Value *V,
nullptr);
ScheduleEnd = I->getNextNode();
if (isOneOf(S, I) != I)
CheckSheduleForI(I);
CheckScheduleForI(I);
assert(ScheduleEnd && "tried to vectorize a terminator?");
LLVM_DEBUG(dbgs() << "SLP: extend schedule region end to " << *I << "\n");
return true;
Expand Down

0 comments on commit 8ab3bef

Please sign in to comment.