diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-05-28 03:02:54 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-05-28 03:02:54 +0000 |
commit | 7884633c5b0660fb613af2e8fcfb03e9f9e54af6 (patch) | |
tree | 3d607cb64b90b66e95469e330fd9c6a06decacb4 /llvm/lib/Transforms | |
parent | 2a73019f3e031ccb474849f46fce7d8beb47d340 (diff) | |
download | bcm5719-llvm-7884633c5b0660fb613af2e8fcfb03e9f9e54af6.tar.gz bcm5719-llvm-7884633c5b0660fb613af2e8fcfb03e9f9e54af6.zip |
[IRPGO] Set the function entry count metadata.
llvm-svn: 271090
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index 6f994eb2c7a..4c4784e2394 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -870,6 +870,7 @@ static bool annotateAllFunctions( auto *BFI = LookupBFI(F); PGOUseFunc Func(F, &M, BPI, BFI); setPGOCountOnFunc(Func, PGOReader.get()); + F.setEntryCount(Func.EntryCount); if (!Func.getProfileRecord().Counts.empty()) Builder.addRecord(Func.getProfileRecord()); |