aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/InlineCost.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-09-09 16:56:42 +0000
committerOwen Anderson <resistor@mac.com>2010-09-09 16:56:42 +0000
commit082bf2a977b6bb91d61ac5155e1906ecc6ba47bf (patch)
treec9611fb02c6188d45c7a70d0688968299ff38a90 /include/llvm/Analysis/InlineCost.h
parenta6c329d66b5327a2ecaa27f3a64797f1a57711f3 (diff)
downloadexternal_llvm-082bf2a977b6bb91d61ac5155e1906ecc6ba47bf.zip
external_llvm-082bf2a977b6bb91d61ac5155e1906ecc6ba47bf.tar.gz
external_llvm-082bf2a977b6bb91d61ac5155e1906ecc6ba47bf.tar.bz2
Refactor code-size reduction estimation methods out of InlineCostAnalyzer and into CodeMetrics. They
don't use any InlineCostAnalyzer state, and are useful for other clients who don't necessarily want to use all of InlineCostAnalyzer's logic, some of which is fairly inlining-specific. No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/InlineCost.h')
-rw-r--r--include/llvm/Analysis/InlineCost.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h
index 462bddd..b3b9395 100644
--- a/include/llvm/Analysis/InlineCost.h
+++ b/include/llvm/Analysis/InlineCost.h
@@ -110,16 +110,7 @@ namespace llvm {
/// entry here.
std::vector<ArgInfo> ArgumentWeights;
- /// CountCodeReductionForConstant - Figure out an approximation for how
- /// many instructions will be constant folded if the specified value is
- /// constant.
- unsigned CountCodeReductionForConstant(Value *V);
-
- /// CountCodeReductionForAlloca - Figure out an approximation of how much
- /// smaller the function will be if it is inlined into a context where an
- /// argument becomes an alloca.
- ///
- unsigned CountCodeReductionForAlloca(Value *V);
+
/// analyzeFunction - Add information about the specified function
/// to the current structure.