summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-05-11 22:56:19 +0000
committerTeresa Johnson <tejohnson@google.com>2016-05-11 22:56:19 +0000
commit2e03094d45e4ffa3aba3bcbef42f612c5b72bf2f (patch)
treea4f2f7c163baf4649551c18548222b0097a316ab /llvm/lib
parent911d57840a06615c17e11657435c75b600bf9a67 (diff)
downloadbcm5719-llvm-2e03094d45e4ffa3aba3bcbef42f612c5b72bf2f.tar.gz
bcm5719-llvm-2e03094d45e4ffa3aba3bcbef42f612c5b72bf2f.zip
[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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 498ce5e3fb4..a089f3c16e3 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -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;
OpenPOWER on IntegriCloud