[PATCH] D21702: Hookup ProfileSummary with SampleProfilerLoader
Dehao Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 24 14:24:38 PDT 2016
danielcdh created this revision.
danielcdh added reviewers: davidxl, eraman.
danielcdh added a subscriber: llvm-commits.
Set ProfileSummary in SampleProfilerLoader.
http://reviews.llvm.org/D21702
Files:
lib/Transforms/IPO/SampleProfile.cpp
Index: lib/Transforms/IPO/SampleProfile.cpp
===================================================================
--- lib/Transforms/IPO/SampleProfile.cpp
+++ lib/Transforms/IPO/SampleProfile.cpp
@@ -1275,6 +1275,7 @@
clearFunctionData();
retval |= runOnFunction(F);
}
+ M.setProfileSummary(Reader->getSummary().getMD(M.getContext()));
return retval;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21702.61840.patch
Type: text/x-patch
Size: 377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160624/4600585c/attachment.bin>
More information about the llvm-commits
mailing list