llvm-project/llvm/test/Transforms/SampleProfile
Teresa Johnson 915897e21b [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 Do not set branch weight if the branch weight annotation is present. 2017-03-23 14:43:10 +00:00
calls.ll Remove the sample pgo annotation heuristic that uses call count to annotate basic block count. 2017-03-06 17:49:59 +00:00
cov-zero-samples.ll Canonicalize the representation of empty an expression in DIGlobalVariableExpression 2017-08-30 18:06:51 +00:00
coverage-warning.ll
discriminator.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
early-inline.ll Invoke GetInlineCost for legality check before inline functions in SampleProfileLoader. 2017-09-14 17:29:56 +00:00
entry_counts.ll [PGO] Fix handling of cold entry count for instrumented PGO 2017-12-18 20:02:43 +00:00
fnptr.ll Remove the sample pgo annotation heuristic that uses call count to annotate basic block count. 2017-03-06 17:49:59 +00:00
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 Fix an obvious bug in SampleProfileReaderGCC. 2017-02-22 17:27:21 +00:00
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 [OptDiag] Updating Remarks in SampleProfile 2017-08-11 21:12:04 +00:00
inline.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
nodebug.ll
nolocinfo.ll
offset.ll
propagate.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
remarks.ll Keep Optimization Remark Yaml in NewPM 2017-08-20 01:30:45 +00:00
summary.ll
syntax.ll