mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
I should not be allowed to commit when sleepy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45608 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a997c498e0
commit
a393cd3306
@ -249,7 +249,7 @@ void PEI::saveCalleeSavedRegisters(MachineFunction &Fn) {
|
||||
// code into the entry block.
|
||||
MachineBasicBlock *MBB = Fn.begin();
|
||||
MachineBasicBlock::iterator I = MBB->begin();
|
||||
if (!RegInfo->spillCalleeSavedRegisters(*MBB, I, CSI)) {
|
||||
if (!TII.spillCalleeSavedRegisters(*MBB, I, CSI)) {
|
||||
for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
|
||||
// Add the callee-saved register as live-in. It's killed at the spill.
|
||||
MBB->addLiveIn(CSI[i].getReg());
|
||||
@ -280,7 +280,7 @@ void PEI::saveCalleeSavedRegisters(MachineFunction &Fn) {
|
||||
|
||||
// Restore all registers immediately before the return and any terminators
|
||||
// that preceed it.
|
||||
if (!RegInfo->restoreCalleeSavedRegisters(*MBB, I, CSI)) {
|
||||
if (!TII.restoreCalleeSavedRegisters(*MBB, I, CSI)) {
|
||||
for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
|
||||
TII.loadRegFromStackSlot(*MBB, I, CSI[i].getReg(),
|
||||
CSI[i].getFrameIdx(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user