Skip to content

Commit ce81ce1

Browse files
committed
Fix formatting
Created using spr 1.3.5
1 parent c13a04f commit ce81ce1

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4428,7 +4428,7 @@ class BoUpSLP {
44284428

44294429
auto DecrUnschedForInst = [&](Instruction *I) {
44304430
if (ScheduleData *OpSD = getScheduleData(I))
4431-
DecrUnsched(OpSD, /*IsControl*/false);
4431+
DecrUnsched(OpSD, /*IsControl=*/false);
44324432
};
44334433

44344434
// If BundleMember is a vector bundle, its operands may have been
@@ -4476,9 +4476,8 @@ class BoUpSLP {
44764476
for (ScheduleData *MemoryDep : BundleMember->getMemoryDependencies()) {
44774477
// There are no more unscheduled dependencies after decrementing,
44784478
// so we can put the dependent instruction into the ready list.
4479-
LLVM_DEBUG(dbgs()
4480-
<< "SLP: check for readiness (mem): " << *MemoryDep
4481-
<< "\n");
4479+
LLVM_DEBUG(dbgs() << "SLP: check for readiness (mem): "
4480+
<< *MemoryDep << "\n");
44824481
DecrUnsched(MemoryDep);
44834482
}
44844483
// Handle the control dependencies.
@@ -9076,8 +9075,8 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
90769075
copy(Op1, NewVL.begin());
90779076
copy(Op2, std::next(NewVL.begin(), Op1.size()));
90789077
auto Invalid = ScheduleBundle::invalid();
9079-
auto *TE = newTreeEntry(VL, TreeEntry::SplitVectorize, Invalid,
9080-
LocalState, UserTreeIdx, {}, ReorderIndices);
9078+
auto *TE = newTreeEntry(VL, TreeEntry::SplitVectorize, Invalid, LocalState,
9079+
UserTreeIdx, {}, ReorderIndices);
90819080
LLVM_DEBUG(dbgs() << "SLP: split alternate node.\n"; TE->dump());
90829081
auto AddNode = [&](ArrayRef<Value *> Op, unsigned Idx) {
90839082
InstructionsState S = getSameOpcode(Op, *TLI);
@@ -9086,8 +9085,7 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
90869085
// Build gather node for loads, they will be gathered later.
90879086
TE->CombinedEntriesWithIndices.emplace_back(VectorizableTree.size(),
90889087
Idx == 0 ? 0 : Op1.size());
9089-
(void)newTreeEntry(Op, TreeEntry::NeedToGather, Invalid, S,
9090-
{TE, Idx});
9088+
(void)newTreeEntry(Op, TreeEntry::NeedToGather, Invalid, S, {TE, Idx});
90919089
} else {
90929090
TE->CombinedEntriesWithIndices.emplace_back(VectorizableTree.size(),
90939091
Idx == 0 ? 0 : Op1.size());
@@ -9224,7 +9222,7 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
92249222
if (isVectorized(V)) {
92259223
LLVM_DEBUG(dbgs() << "SLP: The instruction (" << *V
92269224
<< ") is already in tree.\n");
9227-
if (TryToFindDuplicates(S)){
9225+
if (TryToFindDuplicates(S)) {
92289226
auto Invalid = ScheduleBundle::invalid();
92299227
newTreeEntry(VL, Invalid /*not vectorized*/, S, UserTreeIdx,
92309228
ReuseShuffleIndices);
@@ -18281,8 +18279,8 @@ BoUpSLP::BlockScheduling::tryScheduleBundle(ArrayRef<Value *> VL, BoUpSLP *SLP,
1828118279
ReSchedule = true;
1828218280
}
1828318281
if (Bundle && !Bundle.getBundle().empty()) {
18284-
LLVM_DEBUG(dbgs() << "SLP: try schedule bundle " << Bundle
18285-
<< " in block " << BB->getName() << "\n");
18282+
LLVM_DEBUG(dbgs() << "SLP: try schedule bundle " << Bundle << " in block "
18283+
<< BB->getName() << "\n");
1828618284
calculateDependencies(Bundle, /*InsertInReadyList=*/!ReSchedule, SLP);
1828718285
}
1828818286

@@ -18676,8 +18674,8 @@ void BoUpSLP::BlockScheduling::calculateDependencies(ScheduleBundle &Bundle,
1867618674
"ScheduleData not in scheduling region");
1867718675
if (Bundle->isReady()) {
1867818676
ReadyInsts.insert(Bundle);
18679-
LLVM_DEBUG(dbgs() << "SLP: gets ready on update: " << *Bundle
18680-
<< "\n");
18677+
LLVM_DEBUG(dbgs()
18678+
<< "SLP: gets ready on update: " << *Bundle << "\n");
1868118679
}
1868218680
}
1868318681
continue;

0 commit comments

Comments
 (0)