diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-31 18:57:49 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-31 18:57:49 +0000 |
commit | fa79e6e869264f6bf8b134302e4218f08f1f0ced (patch) | |
tree | e526309758ad1a023eeee96660e9331f9e84376c /lib/CodeGen | |
parent | 1792779edffe9e41cb0c07298b4dd0ef4acb0f2a (diff) | |
download | external_llvm-fa79e6e869264f6bf8b134302e4218f08f1f0ced.zip external_llvm-fa79e6e869264f6bf8b134302e4218f08f1f0ced.tar.gz external_llvm-fa79e6e869264f6bf8b134302e4218f08f1f0ced.tar.bz2 |
Include temp. values when computing max. size of stack frame!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index de3e4f6..ef27dba 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -124,7 +124,7 @@ MachineCodeForMethod::MachineCodeForMethod(const Method* _M, method(_M), compiledAsLeaf(false), staticStackSize(0), automaticVarsSize(0), regSpillsSize(0), currentOptionalArgsSize(0), maxOptionalArgsSize(0), - currentTmpValuesSize(0) + currentTmpValuesSize(0), maxTmpValuesSize(0) { maxOptionalArgsSize = ComputeMaxOptionalArgsSize(target, method); staticStackSize = maxOptionalArgsSize @@ -284,14 +284,14 @@ MachineCodeForMethod::pushTempValue(const TargetMachine& target, offset = growUp ? firstTmpOffset + offset : firstTmpOffset - offset; - currentTmpValuesSize += size; + incrementTmpAreaSize(size); return offset; } void MachineCodeForMethod::popAllTempValues(const TargetMachine& target) { - currentTmpValuesSize = 0; + resetTmpAreaSize(); } int |