@@ -181,10 +181,10 @@ static cl::opt<bool> AllowRecursiveContexts(
181181 " memprof-allow-recursive-contexts" , cl::init(true ), cl::Hidden,
182182 cl::desc(" Allow cloning of contexts having recursive cycles" ));
183183
184- // Set the minimum absolute count threshold for inlining of indirect calls
185- // promoted during cloning.
186- static cl::opt<unsigned > ICPInlineMinimumCountThreshold (
187- " memprof-icp-inline-minimum-count- threshold" , cl::init(0 ), cl::Hidden,
184+ // Set the minimum absolute count threshold for allowing inlining of indirect
185+ // calls promoted during cloning.
186+ static cl::opt<unsigned > MemProfICPNoInlineThreshold (
187+ " memprof-icp-noinline- threshold" , cl::init(2 ), cl::Hidden,
188188 cl::desc(" Minimum absolute count for promoted target to be inlinable" ));
189189
190190namespace llvm {
@@ -5579,8 +5579,8 @@ void MemProfContextDisambiguation::performICP(
55795579 .getCallee ());
55805580 }
55815581 DirectCall.setCalledFunction (TargetToUse);
5582- if (ICPInlineMinimumCountThreshold &&
5583- Candidate.Count < ICPInlineMinimumCountThreshold )
5582+ if (MemProfICPNoInlineThreshold &&
5583+ Candidate.Count < MemProfICPNoInlineThreshold )
55845584 DirectCall.setIsNoInline ();
55855585 ORE.emit (OptimizationRemark (DEBUG_TYPE, " MemprofCall" , CBClone)
55865586 << ore::NV (" Call" , CBClone) << " in clone "
0 commit comments