aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Utils/InlineCost.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Utils/InlineCost.h')
-rw-r--r--include/llvm/Transforms/Utils/InlineCost.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Utils/InlineCost.h b/include/llvm/Transforms/Utils/InlineCost.h
index 1698a81..415fc1e 100644
--- a/include/llvm/Transforms/Utils/InlineCost.h
+++ b/include/llvm/Transforms/Utils/InlineCost.h
@@ -78,6 +78,9 @@ namespace llvm {
/// caller.
bool NeverInline;
+ /// usesDynamicAlloca - True if this function calls alloca (in the C sense).
+ bool usesDynamicAlloca;
+
/// NumInsts, NumBlocks - Keep track of how large each function is, which
/// is used to estimate the code size cost of inlining it.
unsigned NumInsts, NumBlocks;
@@ -93,8 +96,8 @@ namespace llvm {
/// entry here.
std::vector<ArgInfo> ArgumentWeights;
- FunctionInfo() : NeverInline(false), NumInsts(0), NumBlocks(0),
- NumVectorInsts(0) {}
+ FunctionInfo() : NeverInline(false), usesDynamicAlloca(false), NumInsts(0),
+ NumBlocks(0), NumVectorInsts(0) {}
/// analyzeFunction - Fill in the current structure with information
/// gleaned from the specified function.