Skip to content

Commit b2ac353

Browse files
committed
Fix formatting
1 parent 1304785 commit b2ac353

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

llvm/lib/IR/DiagnosticInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key,
275275

276276
DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key,
277277
BranchProbability P)
278-
: Key(std::string(Key)) {
278+
: Key(std::string(Key)) {
279279
raw_string_ostream OS(Val);
280280
P.print(OS);
281281
}

llvm/lib/Transforms/Coroutines/CoroAnnotationElide.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ PreservedAnalyses CoroAnnotationElidePass::run(LazyCallGraph::SCC &C,
154154
bool HasAttr = CB->hasFnAttr(llvm::Attribute::CoroElideSafe);
155155
if (IsCallerPresplitCoroutine && HasAttr) {
156156
static BranchProbability MinBranchProbability(
157-
static_cast<int>(CoroElideBranchRatio * MinBlockCounterExecution),
158-
MinBlockCounterExecution);
157+
static_cast<int>(CoroElideBranchRatio * MinBlockCounterExecution),
158+
MinBlockCounterExecution);
159159

160160
auto &BFI = FAM.getResult<BlockFrequencyAnalysis>(*Caller);
161161

@@ -165,11 +165,14 @@ PreservedAnalyses CoroAnnotationElidePass::run(LazyCallGraph::SCC &C,
165165

166166
if (Prob < MinBranchProbability) {
167167
ORE.emit([&]() {
168-
return OptimizationRemarkMissed(DEBUG_TYPE, "CoroAnnotationElideUnlikely", Caller)
169-
<< "'" << ore::NV("callee", Callee->getName())
170-
<< "' not elided in '" << ore::NV("caller", Caller->getName())
171-
<< "' because of low probability: " << ore::NV("probability", Prob)
172-
<< " (threshold: " << ore::NV("threshold", MinBranchProbability) << ")";
168+
return OptimizationRemarkMissed(
169+
DEBUG_TYPE, "CoroAnnotationElideUnlikely", Caller)
170+
<< "'" << ore::NV("callee", Callee->getName())
171+
<< "' not elided in '"
172+
<< ore::NV("caller", Caller->getName())
173+
<< "' because of low probability: "
174+
<< ore::NV("probability", Prob) << " (threshold: "
175+
<< ore::NV("threshold", MinBranchProbability) << ")";
173176
});
174177
continue;
175178
}

0 commit comments

Comments
 (0)