summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2016-05-28 03:02:54 +0000
committerSean Silva <chisophugis@gmail.com>2016-05-28 03:02:54 +0000
commit7884633c5b0660fb613af2e8fcfb03e9f9e54af6 (patch)
tree3d607cb64b90b66e95469e330fd9c6a06decacb4 /llvm/test/Transforms
parent2a73019f3e031ccb474849f46fce7d8beb47d340 (diff)
downloadbcm5719-llvm-7884633c5b0660fb613af2e8fcfb03e9f9e54af6.tar.gz
bcm5719-llvm-7884633c5b0660fb613af2e8fcfb03e9f9e54af6.zip
[IRPGO] Set the function entry count metadata.
llvm-svn: 271090
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/PGOProfile/branch1.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Transforms/PGOProfile/branch1.ll b/llvm/test/Transforms/PGOProfile/branch1.ll
index 380a293ca0e..b2c7bcc2c19 100644
--- a/llvm/test/Transforms/PGOProfile/branch1.ll
+++ b/llvm/test/Transforms/PGOProfile/branch1.ll
@@ -21,6 +21,8 @@ target triple = "x86_64-unknown-linux-gnu"
; GEN: @__profn_test_br_1 = private constant [9 x i8] c"test_br_1"
define i32 @test_br_1(i32 %i) {
+; USE-LABEL: @test_br_1
+; USE-SAME: !prof ![[FUNC_ENTRY_COUNT:[0-9]+]]
entry:
; GEN: entry:
; GEN-NOT: llvm.instrprof.increment
@@ -44,3 +46,4 @@ if.end:
}
; USE-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
; USE-DAG: {{![0-9]+}} = !{!"DetailedSummary", {{![0-9]+}}}
+; USE-DAG: ![[FUNC_ENTRY_COUNT]] = !{!"function_entry_count", i64 3}
OpenPOWER on IntegriCloud