mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
in functions that use a lot of callee saved regs, this can be more than
5 instructions away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
335fd3c7c2
commit
8aa777d5ea
@ -315,7 +315,7 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const {
|
||||
|
||||
// Scan the first few instructions of the prolog, looking for an UPDATE_VRSAVE
|
||||
// instruction. If we find it, process it.
|
||||
for (unsigned i = 0; MBBI != MBB.end() && i < 5; ++i, ++MBBI) {
|
||||
for (unsigned i = 0; MBBI != MBB.end(); ++i, ++MBBI) {
|
||||
if (MBBI->getOpcode() == PPC::UPDATE_VRSAVE) {
|
||||
HandleVRSaveUpdate(MBBI, MF.getUsedPhysregs());
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user