comment why we use custom epilogue for t1 functions using vaargs.

llvm-svn: 98182
This commit is contained in:
Jim Grosbach 2010-03-10 19:59:47 +00:00
parent e9b361b2e6
commit 77f781405d
1 changed files with 5 additions and 0 deletions

View File

@ -854,6 +854,11 @@ void Thumb1RegisterInfo::emitEpilogue(MachineFunction &MF,
}
if (VARegSaveSize) {
// Unlike T2 and ARM mode, the T1 pop instruction cannot restore
// to LR, and we can't pop the value directly to the PC since
// we need to update the SP after popping the value. Therefore, we
// pop the old LR into R3 as a temporary.
// Move back past the callee-saved register restoration
while (MBBI != MBB.end() && isCSRestore(MBBI, CSRegs))
++MBBI;