mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
minor cleanup and add clarifying comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
11716d766b
commit
17487ba60d
@ -668,8 +668,9 @@ ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
|
||||
NumExtras--;
|
||||
}
|
||||
}
|
||||
while (NumExtras && !UnspilledCS2GPRs.empty() &&
|
||||
!AFI->isThumb1OnlyFunction()) {
|
||||
// For non-Thumb1 functions, also check for hi-reg CS registers
|
||||
if (!AFI->isThumb1OnlyFunction()) {
|
||||
while (NumExtras && !UnspilledCS2GPRs.empty()) {
|
||||
unsigned Reg = UnspilledCS2GPRs.back();
|
||||
UnspilledCS2GPRs.pop_back();
|
||||
if (!isReservedReg(MF, Reg)) {
|
||||
@ -677,6 +678,7 @@ ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
|
||||
NumExtras--;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Extras.size() && NumExtras == 0) {
|
||||
for (unsigned i = 0, e = Extras.size(); i != e; ++i) {
|
||||
MF.getRegInfo().setPhysRegUsed(Extras[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user