summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SampleProfile/Inputs
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2015-05-13 17:04:29 +0000
committerDiego Novillo <dnovillo@google.com>2015-05-13 17:04:29 +0000
commitffc84e378a7c251b4c82733b5a3b30f48291aec7 (patch)
tree2330fc2a714a0b0dd459f2e3ef19341781d3016f /llvm/test/Transforms/SampleProfile/Inputs
parent732e2681c710147e95b390db06bf72ded13efb1e (diff)
downloadbcm5719-llvm-ffc84e378a7c251b4c82733b5a3b30f48291aec7.tar.gz
bcm5719-llvm-ffc84e378a7c251b4c82733b5a3b30f48291aec7.zip
Add function entry counts from sample profiles.
This patch uses the new function profile metadata "function_entry_count" to annotate entry counts from sample profiles. In a sampling profile, the total samples collected at the function entry are an approximation for the number of times that function was invoked. llvm-svn: 237265
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/Inputs')
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof b/llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof
new file mode 100644
index 00000000000..5c2172b5a4d
--- /dev/null
+++ b/llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof
@@ -0,0 +1,3 @@
+empty:100:13293
+0: 0
+1: 100
OpenPOWER on IntegriCloud