[ThinLTO] Don't re-analyze callee at same threshold unnecessarily

This should just be a compile-time change. Correct the check for whether
we have already analyzed the callee when making summary based decisions.
There is no need to reprocess one at the same threshold as when it was
last processed.

llvm-svn: 269251
This commit is contained in:
Teresa Johnson 2016-05-11 22:56:19 +00:00
parent 911d57840a
commit 2e03094d45

View File

@ -288,7 +288,7 @@ static void computeImportForFunction(
/// Since the traversal of the call graph is DFS, we can revisit a function
/// a second time with a higher threshold. In this case, it is added back to
/// the worklist with the new threshold.
if (ProcessedThreshold && ProcessedThreshold > Threshold) {
if (ProcessedThreshold && ProcessedThreshold >= Threshold) {
DEBUG(dbgs() << "ignored! Target was already seen with Threshold "
<< ProcessedThreshold << "\n");
continue;