summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2016-06-24 22:57:06 +0000
committerDehao Chen <dehao@google.com>2016-06-24 22:57:06 +0000
commitc66a06ad0ec57d4981f06e458292d739eed71475 (patch)
tree91560542ee5294697a646d661d1a0a1a52d64086 /llvm/lib/Transforms
parent449cdfd00aa2d9d5ff9c919200e0986f59f14992 (diff)
downloadbcm5719-llvm-c66a06ad0ec57d4981f06e458292d739eed71475.tar.gz
bcm5719-llvm-c66a06ad0ec57d4981f06e458292d739eed71475.zip
Hookup ProfileSummary with SampleProfilerLoader
Summary: Set ProfileSummary in SampleProfilerLoader. Reviewers: davidxl, eraman Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D21702 llvm-svn: 273745
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/SampleProfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/SampleProfile.cpp b/llvm/lib/Transforms/IPO/SampleProfile.cpp
index d25d9d4be1e..b6a112d530e 100644
--- a/llvm/lib/Transforms/IPO/SampleProfile.cpp
+++ b/llvm/lib/Transforms/IPO/SampleProfile.cpp
@@ -1275,6 +1275,7 @@ bool SampleProfileLoader::runOnModule(Module &M) {
clearFunctionData();
retval |= runOnFunction(F);
}
+ M.setProfileSummary(Reader->getSummary().getMD(M.getContext()));
return retval;
}
OpenPOWER on IntegriCloud