OSDN Git Service

Refactor indirect call promotion profitability analysis (NFC)
authorTeresa Johnson <tejohnson@google.com>
Tue, 12 Jul 2016 21:13:44 +0000 (21:13 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 12 Jul 2016 21:13:44 +0000 (21:13 +0000)
commite0c5ceae903f6b1bd8c40e62d65e0cc1fdf6e10a
tree98765fb0f3d7e7a1437b2f66aaa0aa50e2d24a48
parentcb071cb0e319e6ee29079345826a84257168e979
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
include/llvm/Analysis/IndirectCallPromotionAnalysis.h [new file with mode: 0644]
include/llvm/Analysis/IndirectCallSiteVisitor.h [moved from lib/Transforms/Instrumentation/IndirectCallSiteVisitor.h with 100% similarity]
lib/Analysis/CMakeLists.txt
lib/Analysis/IndirectCallPromotionAnalysis.cpp [new file with mode: 0644]
lib/Analysis/LLVMBuild.txt
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
lib/Transforms/Instrumentation/PGOInstrumentation.cpp