diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-12 18:06:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-12 18:06:35 +0000 |
commit | 3927af8d70c0809c6286b3d14b350a2f04bd024b (patch) | |
tree | 77b4dbe0a9e3171658a68210fd3104a2e62901ec /lib/CodeGen/MachineFunction.cpp | |
parent | 484577a870562ea16886f582650afcf38026b4cb (diff) |
The only target that uses this code (v9) always has argsOnStackHaveFixedSize
set to true (obviously)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index 1ad3fdb0fa..95a4498903 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/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; |