mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +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:
@@ -668,13 +668,15 @@ ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
|
|||||||
NumExtras--;
|
NumExtras--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (NumExtras && !UnspilledCS2GPRs.empty() &&
|
// For non-Thumb1 functions, also check for hi-reg CS registers
|
||||||
!AFI->isThumb1OnlyFunction()) {
|
if (!AFI->isThumb1OnlyFunction()) {
|
||||||
unsigned Reg = UnspilledCS2GPRs.back();
|
while (NumExtras && !UnspilledCS2GPRs.empty()) {
|
||||||
UnspilledCS2GPRs.pop_back();
|
unsigned Reg = UnspilledCS2GPRs.back();
|
||||||
if (!isReservedReg(MF, Reg)) {
|
UnspilledCS2GPRs.pop_back();
|
||||||
Extras.push_back(Reg);
|
if (!isReservedReg(MF, Reg)) {
|
||||||
NumExtras--;
|
Extras.push_back(Reg);
|
||||||
|
NumExtras--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Extras.size() && NumExtras == 0) {
|
if (Extras.size() && NumExtras == 0) {
|
||||||
|
Reference in New Issue
Block a user