Minor fixes.

llvm-svn: 1892
This commit is contained in:
Vikram S. Adve 2002-03-18 03:08:07 +00:00
parent 270f56a085
commit 55ee12bb25
1 changed files with 7 additions and 3 deletions

View File

@ -114,7 +114,7 @@ void InsertPrologEpilogCode::InsertEpilogCode(Method* method)
assert(N == ndelays && "Cannot use epilog code for delay slots?"); assert(N == ndelays && "Cannot use epilog code for delay slots?");
// Append the epilog code to the end of the basic block. // Append the epilog code to the end of the basic block.
bbMvec.push_back(minstrVec[0]); bbMvec.insert(bbMvec.end(), minstrVec, minstrVec+N);
} }
} }
} }
@ -165,10 +165,14 @@ int
UltraSparcFrameInfo::getDynamicAreaOffset(MachineCodeForMethod& mcInfo, UltraSparcFrameInfo::getDynamicAreaOffset(MachineCodeForMethod& mcInfo,
bool& pos) const bool& pos) const
{ {
// dynamic stack area grows downwards starting at top of opt-args area // Dynamic stack area grows downwards starting at top of opt-args area.
// The opt-args, required-args, and register-save areas are empty except
// during calls and traps, so they are shifted downwards on each
// dynamic-size alloca.
pos = false;
unsigned int optArgsSize = mcInfo.getMaxOptionalArgsSize(); unsigned int optArgsSize = mcInfo.getMaxOptionalArgsSize();
int offset = optArgsSize + FirstOptionalOutgoingArgOffsetFromSP; int offset = optArgsSize + FirstOptionalOutgoingArgOffsetFromSP;
assert(offset % getStackFrameSizeAlignment() == 0); assert((offset - OFFSET) % getStackFrameSizeAlignment() == 0);
return offset; return offset;
} }