Refactor indirect call promotion profitability analysis (NFC)
authorTeresa Johnson <tejohnson@google.com>
Sun, 17 Jul 2016 14:46:54 +0000 (14:46 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sun, 17 Jul 2016 14:46:54 +0000 (14:46 +0000)
commitc64254e2238f2dabb9b487b2d9f1bc0ea63ccfcf
tree6e18bc8e1fa51f62ab7ac512385504788a130e92
parent611890892a2833ad3f7c6a08ba06df0803dbc740
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@275705 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp