diff options
| author | Teresa Johnson <tejohnson@google.com> | 2016-07-17 14:46:54 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2016-07-17 14:46:54 +0000 |
| commit | 3f4219865214f689c9e9e69bda1279aec72440f9 (patch) | |
| tree | 2a7aef3018f5ddaf67529d03819183d9590f8b4c | |
| parent | 3357ba36e244a693485d99b47ba519e15f386299 (diff) | |
| download | bcm5719-llvm-3f4219865214f689c9e9e69bda1279aec72440f9.tar.gz bcm5719-llvm-3f4219865214f689c9e9e69bda1279aec72440f9.zip | |
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
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp b/llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp index 202b94b19c4..1b1761d619f 100644 --- a/llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp +++ b/llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp @@ -275,14 +275,6 @@ ICallPromotionFunc::getPromotionCandidatesForCallSite( DEBUG(dbgs() << " Candidate " << I << " Count=" << Count << " Target_func: " << Target << "\n"); - if (ICPInvokeOnly && dyn_cast<CallInst>(Inst)) { - DEBUG(dbgs() << " Not promote: User options.\n"); - break; - } - if (ICPCallOnly && dyn_cast<InvokeInst>(Inst)) { - DEBUG(dbgs() << " Not promote: User option.\n"); - break; - } if (ICPCutOff != 0 && NumOfPGOICallPromotion >= ICPCutOff) { DEBUG(dbgs() << " Not promote: Cutoff reached.\n"); break; |

