diff --git a/llvm/tools/llvm-profgen/CSPreInliner.cpp b/llvm/tools/llvm-profgen/CSPreInliner.cpp --- a/llvm/tools/llvm-profgen/CSPreInliner.cpp +++ b/llvm/tools/llvm-profgen/CSPreInliner.cpp @@ -69,6 +69,8 @@ SampleHotCallSiteThreshold = 1500; if (!SampleColdCallSiteThreshold.getNumOccurrences()) SampleColdCallSiteThreshold = 0; + if (!ProfileInlineLimitMax.getNumOccurrences()) + ProfileInlineLimitMax = 3000; } std::vector CSPreInliner::buildTopDownOrder() {