1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00

Fix problem with insertion point for ADJCALLSTACKDOWN.

llvm-svn: 17733
This commit is contained in:
Brian Gaeke 2004-11-14 06:32:08 +00:00
parent 0e77dab4e8
commit f9ec4c8ee2

View File

@ -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) {