3 Commits

Author SHA1 Message Date
Teresa Johnson
66150646ec [PGO] Adjust indirect call promotion threshold
Summary:
Reduce min percent required for indirect call promotion from 33% to 30%,
which matches gcc's threshold and catches the same hot opportunities.

Reviewers: davidxl

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304469 91177308-0d34-0410-b5e6-96231b3b80d8
2017-06-01 21:10:10 +00:00
Teresa Johnson
f0bd87ec4e Remove another unused variable from r275216
Remove another variable added in r275216 that was only used in debug
mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275238 91177308-0d34-0410-b5e6-96231b3b80d8
2016-07-12 23:49:17 +00:00
Teresa Johnson
e0c5ceae90 Refactor indirect call promotion profitability analysis (NFC)
Summary:
Refactored the profitability analysis out of the IC promotion pass and
into lib/Analysis so that it can be accessed by the summary index
builder in a follow-on patch to enable IC promotion in ThinLTO (D21932).

Reviewers: davidxl, xur

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D22182

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275216 91177308-0d34-0410-b5e6-96231b3b80d8
2016-07-12 21:13:44 +00:00