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)
commit3f4219865214f689c9e9e69bda1279aec72440f9
tree2a7aef3018f5ddaf67529d03819183d9590f8b4c
parent3357ba36e244a693485d99b47ba519e15f386299
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

llvm-svn: 275705
llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp