Remove ScavengedRC from RegisterScavenging

ScavengedRC was a dead private variable (set, but not otherwise used). No
functionality change intended.

llvm-svn: 177708
This commit is contained in:
Hal Finkel 2013-03-22 07:27:44 +00:00
parent aeb2a3c3a2
commit 7dbe0f0636
2 changed files with 1 additions and 8 deletions

View File

@ -48,10 +48,6 @@ class RegScavenger {
/// scavenged. That is, it is spilled to the special scavenging stack slot. /// scavenged. That is, it is spilled to the special scavenging stack slot.
unsigned ScavengedReg; unsigned ScavengedReg;
/// ScavengedRC - Register class of the scavenged register.
///
const TargetRegisterClass *ScavengedRC;
/// ScavengeRestore - Instruction that restores the scavenged register from /// ScavengeRestore - Instruction that restores the scavenged register from
/// stack. /// stack.
const MachineInstr *ScavengeRestore; const MachineInstr *ScavengeRestore;
@ -72,7 +68,7 @@ class RegScavenger {
public: public:
RegScavenger() RegScavenger()
: MBB(NULL), NumPhysRegs(0), Tracking(false), : MBB(NULL), NumPhysRegs(0), Tracking(false),
ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {} ScavengingFrameIndex(-1), ScavengedReg(0) {}
/// enterBasicBlock - Start tracking liveness from the begin of the specific /// enterBasicBlock - Start tracking liveness from the begin of the specific
/// basic block. /// basic block.

View File

@ -46,7 +46,6 @@ bool RegScavenger::isAliasUsed(unsigned Reg) const {
void RegScavenger::initRegState() { void RegScavenger::initRegState() {
ScavengedReg = 0; ScavengedReg = 0;
ScavengedRC = NULL;
ScavengeRestore = NULL; ScavengeRestore = NULL;
// All registers started out unused. // All registers started out unused.
@ -123,7 +122,6 @@ void RegScavenger::forward() {
if (MI == ScavengeRestore) { if (MI == ScavengeRestore) {
ScavengedReg = 0; ScavengedReg = 0;
ScavengedRC = NULL;
ScavengeRestore = NULL; ScavengeRestore = NULL;
} }
@ -390,7 +388,6 @@ unsigned RegScavenger::scavengeRegister(const TargetRegisterClass *RC,
// Doing this here leads to infinite regress. // Doing this here leads to infinite regress.
// ScavengedReg = SReg; // ScavengedReg = SReg;
ScavengedRC = RC;
DEBUG(dbgs() << "Scavenged register (with spill): " << TRI->getName(SReg) << DEBUG(dbgs() << "Scavenged register (with spill): " << TRI->getName(SReg) <<
"\n"); "\n");