summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-12 18:06:35 +0000
committerChris Lattner <sabre@nondot.org>2004-08-12 18:06:35 +0000
commiteb023134139bdf3c8e12bbbb3c77d3a8f9c88f4b (patch)
tree83fd1aadddea5e26f4f2c4030e88c1f2d87363ba /llvm/lib/CodeGen/MachineFunction.cpp
parentb0ac422db58817a13055cc359cee804b64fd6871 (diff)
downloadbcm5719-llvm-eb023134139bdf3c8e12bbbb3c77d3a8f9c88f4b.tar.gz
bcm5719-llvm-eb023134139bdf3c8e12bbbb3c77d3a8f9c88f4b.zip
The only target that uses this code (v9) always has argsOnStackHaveFixedSize
set to true (obviously) llvm-svn: 15692
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 1ad3fdb0fa2..95a44989034 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -332,22 +332,7 @@ ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F,
if (numExtra <= 0)
continue;
- unsigned sizeForThisCall;
- if (frameInfo.argsOnStackHaveFixedSize())
- {
- int argSize = frameInfo.getSizeOfEachArgOnStack();
- sizeForThisCall = numExtra * (unsigned) argSize;
- }
- else
- {
- assert(0 && "UNTESTED CODE: Size per stack argument is not "
- "fixed on this architecture: use actual arg sizes to "
- "compute MaxOptionalArgsSize");
- sizeForThisCall = 0;
- for (unsigned i = 0; i < numOperands; ++i)
- sizeForThisCall += target.getTargetData().getTypeSize(callInst->
- getOperand(i)->getType());
- }
+ unsigned sizeForThisCall = numExtra * 8;
if (maxSize < sizeForThisCall)
maxSize = sizeForThisCall;
OpenPOWER on IntegriCloud