diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-11-14 06:32:08 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-11-14 06:32:08 +0000 |
commit | da9b3668c2fcc154d6bd2718ee5a5f70b8d0c8fa (patch) | |
tree | 589b5400ddee18b58cef8c997984ff55cf48311f /lib/Target/Sparc | |
parent | 5179e41d6e6fc6fa23674677a4b026fcc4f3e949 (diff) |
Fix problem with insertion point for ADJCALLSTACKDOWN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcV8ISelSimple.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/Sparc/SparcV8ISelSimple.cpp b/lib/Target/Sparc/SparcV8ISelSimple.cpp index 6999affa74..1a67ebb36c 100644 --- a/lib/Target/Sparc/SparcV8ISelSimple.cpp +++ b/lib/Target/Sparc/SparcV8ISelSimple.cpp @@ -789,10 +789,9 @@ void V8ISel::visitCallInst(CallInst &I) { const unsigned *OAREnd = &OutgoingArgRegs[6]; const unsigned *OAR = &OutgoingArgRegs[0]; unsigned ArgOffset = 68; + if (extraStack) BuildMI (BB, V8::ADJCALLSTACKDOWN, 1).addImm (extraStack); for (unsigned i = 1; i < I.getNumOperands (); ++i) { unsigned ArgReg = getReg (I.getOperand (i)); - if (i == 7 && extraStack) - BuildMI (BB, V8::ADJCALLSTACKDOWN, 1).addImm (extraStack); if (getClassB (I.getOperand (i)->getType ()) < cLong) { // Schlep it over into the incoming arg register if (ArgOffset < 92) { |