summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2017-01-09 21:56:26 +0000
committerEaswaran Raman <eraman@google.com>2017-01-09 21:56:26 +0000
commite08b139d7d1f4053ea39d5202d30779ee1337155 (patch)
treeaeddf07994254d4e0eb98f0519b3eec4ef4bb341 /clang/lib/AST/Expr.cpp
parent472684eaf5b3e8aba189b38956912b4ee802c526 (diff)
downloadbcm5719-llvm-e08b139d7d1f4053ea39d5202d30779ee1337155.tar.gz
bcm5719-llvm-e08b139d7d1f4053ea39d5202d30779ee1337155.zip
Refactor inline threshold update code.
Functional change: Previously, if a callee is cold, we used ColdThreshold if it minimizes the existing threshold. This was irrespective of whether we were optimizing for minsize (-Oz) or not. But -Oz uses very low threshold to begin with and the inlining with -Oz is expected to be tuned for lowering code size, so there is no good reason to set an even lower threshold for cold callees. We now lower the threshold for cold callees only when -Oz is not used. For default values of -inlinethreshold and -inlinecold-threshold, this change has no effect and this simplifies the code. NFC changes: Group all threshold updates that are guarded by !Caller->optForMinSize() and within that group threshold updates that require profile summary info. Differential revision: https://reviews.llvm.org/D28369 llvm-svn: 291487
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud