Index: lib/Analysis/InlineCost.cpp =================================================================== --- lib/Analysis/InlineCost.cpp +++ lib/Analysis/InlineCost.cpp @@ -657,7 +657,7 @@ bool ColdCallee = PSI->isFunctionEntryCold(&Callee); // For cold callees, use the ColdThreshold knob if it is available and reduces // the threshold. - if (ColdCallee) + if (ColdCallee && !HotCallsite) Threshold = MinIfValid(Threshold, Params.ColdThreshold); // Finally, take the target-specific inlining threshold multiplier into