@@ -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