OSDN Git Service

[opt-remarks] If hotness threshold is set, ignore remarks without hotness
authorAdam Nemet <anemet@apple.com>
Fri, 1 Dec 2017 20:41:38 +0000 (20:41 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 1 Dec 2017 20:41:38 +0000 (20:41 +0000)
commitc4f204db88ed71acb6fd7d08b7fad70004ee8464
treecb106ea07e5fce83ba690b96993cc535d82e7438
parent4b50cdffe5760bd771313fc8da82fcd6325b571d
[opt-remarks] If hotness threshold is set, ignore remarks without hotness

These are blocks that haven't not been executed during training.  For large
projects this could make a significant difference.  For the project, I was
looking at, I got an order of magnitude decrease in the size of the total YAML
files with this and r319235.

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

Re-commit after fixing the failing testcase in rL319576, rL319577 and
rL319578.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319581 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/OptimizationRemarkEmitter.cpp
lib/CodeGen/MachineOptimizationRemarkEmitter.cpp
test/CodeGen/AArch64/arm64-spill-remarks-treshold-hotness.ll [new file with mode: 0644]
test/Transforms/Inline/optimization-remarks-hotness-threshold.ll [new file with mode: 0644]