summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2014-02-05 20:40:15 +0000
committerManman Ren <manman.ren@gmail.com>2014-02-05 20:40:15 +0000
commit94328b6925a1710ccdc18c7053af3ffd39a26d79 (patch)
tree1fdd4f2b38ef7a69b212496708c928681faa83cf /lib/CodeGen/CGExprComplex.cpp
parentcf956c43e15b4860922b242785417fcb34afb5af (diff)
downloadclang-94328b6925a1710ccdc18c7053af3ffd39a26d79.tar.gz
clang-94328b6925a1710ccdc18c7053af3ffd39a26d79.tar.bz2
clang-94328b6925a1710ccdc18c7053af3ffd39a26d79.tar.xz
PGO: instrumentation based profiling sets function attributes.
We collect a maximal function count among all functions in the pgo data file. For functions that are hot, we set its InlineHint attribute. For functions that are cold, we set its Cold attribute. We currently treat functions with >= 30% of the maximal function count as hot and functions with <= 1% of the maximal function count are treated as cold. These two numbers are from preliminary tuning on SPEC. This commit should not affect non-PGO builds and should boost performance on instrumentation based PGO. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions