mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Silience unused warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61390 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -122,7 +122,9 @@ int RegAllocSimple::getStackSpaceFor(unsigned VirtReg,
|
|||||||
unsigned RegAllocSimple::getFreeReg(unsigned virtualReg) {
|
unsigned RegAllocSimple::getFreeReg(unsigned virtualReg) {
|
||||||
const TargetRegisterClass* RC = MF->getRegInfo().getRegClass(virtualReg);
|
const TargetRegisterClass* RC = MF->getRegInfo().getRegClass(virtualReg);
|
||||||
TargetRegisterClass::iterator RI = RC->allocation_order_begin(*MF);
|
TargetRegisterClass::iterator RI = RC->allocation_order_begin(*MF);
|
||||||
|
#ifndef NDEBUG
|
||||||
TargetRegisterClass::iterator RE = RC->allocation_order_end(*MF);
|
TargetRegisterClass::iterator RE = RC->allocation_order_end(*MF);
|
||||||
|
#endif
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
unsigned regIdx = RegClassIdx[RC]++;
|
unsigned regIdx = RegClassIdx[RC]++;
|
||||||
|
@@ -139,6 +139,7 @@ void RegScavenger::restoreScavengedReg() {
|
|||||||
ScavengedRC = NULL;
|
ScavengedRC = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
/// isLiveInButUnusedBefore - Return true if register is livein the MBB not
|
/// isLiveInButUnusedBefore - Return true if register is livein the MBB not
|
||||||
/// not used before it reaches the MI that defines register.
|
/// not used before it reaches the MI that defines register.
|
||||||
static bool isLiveInButUnusedBefore(unsigned Reg, MachineInstr *MI,
|
static bool isLiveInButUnusedBefore(unsigned Reg, MachineInstr *MI,
|
||||||
@@ -172,6 +173,7 @@ static bool isLiveInButUnusedBefore(unsigned Reg, MachineInstr *MI,
|
|||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void RegScavenger::forward() {
|
void RegScavenger::forward() {
|
||||||
// Move ptr forward.
|
// Move ptr forward.
|
||||||
|
Reference in New Issue
Block a user