Index: lib/Analysis/ProfileSummaryInfo.cpp =================================================================== --- lib/Analysis/ProfileSummaryInfo.cpp +++ lib/Analysis/ProfileSummaryInfo.cpp @@ -75,8 +75,9 @@ // preliminary SPEC tuning for inliner. This will eventually be a // convenience method that calls isHotCount. return (FunctionCount && - FunctionCount.getValue() >= - (uint64_t)(0.3 * (double)Summary->getMaxFunctionCount())); + (FunctionCount.getValue() >= + (uint64_t)(0.3 * (double)Summary->getMaxFunctionCount()) || + isHotCount(FunctionCount.getValue()))); } // Returns true if the function is a cold function. If it returns false, it @@ -96,8 +97,9 @@ // preliminary SPEC tuning for inliner. This will eventually be a // convenience method that calls isHotCount. return (FunctionCount && - FunctionCount.getValue() <= - (uint64_t)(0.01 * (double)Summary->getMaxFunctionCount())); + (FunctionCount.getValue() <= + (uint64_t)(0.01 * (double)Summary->getMaxFunctionCount()) || + isColdCount(FunctionCount.getValue()))); } // Compute the hot and cold thresholds.