OSDN Git Service

[opt-remarks] If hotness threshold is set, ignore remarks without hotness
authorAdam Nemet <anemet@apple.com>
Fri, 1 Dec 2017 17:02:04 +0000 (17:02 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 1 Dec 2017 17:02:04 +0000 (17:02 +0000)
commit7cb910a453a82d1f848d56e2a93bb55979d64937
tree0f6b402cfb563546b9b155d27ac570c9e8c9804e
parent54b4cc42dbdd717cd68e1e2c1b1d0c7f3b77bb22
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319556 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]