1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Transforms/SampleProfile
Teresa Johnson b98b101080 [PGO] Fix handling of cold entry count for instrumented PGO
Summary:
In r277849, getEntryCount was changed to return None when the entry
count was 0, specifically for SamplePGO where it means no samples were
recorded. However, for instrumentation PGO a 0 entry count should be
returned directly, since it does mean that the function was completely
cold. Otherwise we end up treating these functions conservatively
in isFunctionEntryCold() and isColdBB().

Instead, for SamplePGO use -1 when there are no samples, and change
getEntryCount to return None when the value is -1.

Reviewers: danielcdh, davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D41307

llvm-svn: 321018
2017-12-18 20:02:43 +00:00
..
Inputs Include GUIDs from the same module when computing GUIDs that needs to be imported. 2017-11-01 20:26:47 +00:00
branch.ll
calls.ll
cov-zero-samples.ll
coverage-warning.ll
discriminator.ll
early-inline.ll
entry_counts.ll [PGO] Fix handling of cold entry count for instrumented PGO 2017-12-18 20:02:43 +00:00
fnptr.ll
function_metadata.ll Include GUIDs from the same module when computing GUIDs that needs to be imported. 2017-11-01 20:26:47 +00:00
gcc-simple.ll
indirect-call-gcc.ll
indirect-call.ll Include already promoted counts when computing SUM for VP. 2017-11-06 19:52:49 +00:00
inline-act.ll
inline-combine.ll
inline-coverage.ll
inline.ll
nodebug.ll
nolocinfo.ll
offset.ll
propagate.ll
remarks.ll
summary.ll
syntax.ll