Refactor indirect call promotion profitability analysis (NFC)
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
Differential Revision: http://reviews.llvm.org/D22182