diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-18 03:08:07 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-18 03:08:07 +0000 |
commit | e6d2c41d4ca6a65c59cf8d2ad83b778acffa923b (patch) | |
tree | c864181d76b58b4c19cfcc5ffeb025df6675718f /lib/Target/SparcV9/SparcV9TargetMachine.cpp | |
parent | d198c47a0e97f9d5b5aa85f7ef45e030a4668c68 (diff) | |
download | external_llvm-e6d2c41d4ca6a65c59cf8d2ad83b778acffa923b.zip external_llvm-e6d2c41d4ca6a65c59cf8d2ad83b778acffa923b.tar.gz external_llvm-e6d2c41d4ca6a65c59cf8d2ad83b778acffa923b.tar.bz2 |
Minor fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9TargetMachine.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9TargetMachine.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index a4556d1..666f61c 100644 --- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp @@ -114,7 +114,7 @@ void InsertPrologEpilogCode::InsertEpilogCode(Method* method) assert(N == ndelays && "Cannot use epilog code for delay slots?"); // 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, 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(); int offset = optArgsSize + FirstOptionalOutgoingArgOffsetFromSP; - assert(offset % getStackFrameSizeAlignment() == 0); + assert((offset - OFFSET) % getStackFrameSizeAlignment() == 0); return offset; } |