forked from OSchip/llvm-project
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:
parent
aeb2a3c3a2
commit
7dbe0f0636
|
@ -48,10 +48,6 @@ class RegScavenger {
|
|||
/// scavenged. That is, it is spilled to the special scavenging stack slot.
|
||||
unsigned ScavengedReg;
|
||||
|
||||
/// ScavengedRC - Register class of the scavenged register.
|
||||
///
|
||||
const TargetRegisterClass *ScavengedRC;
|
||||
|
||||
/// ScavengeRestore - Instruction that restores the scavenged register from
|
||||
/// stack.
|
||||
const MachineInstr *ScavengeRestore;
|
||||
|
@ -72,7 +68,7 @@ class RegScavenger {
|
|||
public:
|
||||
RegScavenger()
|
||||
: 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
|
||||
/// basic block.
|
||||
|
|
|
@ -46,7 +46,6 @@ bool RegScavenger::isAliasUsed(unsigned Reg) const {
|
|||
|
||||
void RegScavenger::initRegState() {
|
||||
ScavengedReg = 0;
|
||||
ScavengedRC = NULL;
|
||||
ScavengeRestore = NULL;
|
||||
|
||||
// All registers started out unused.
|
||||
|
@ -123,7 +122,6 @@ void RegScavenger::forward() {
|
|||
|
||||
if (MI == ScavengeRestore) {
|
||||
ScavengedReg = 0;
|
||||
ScavengedRC = NULL;
|
||||
ScavengeRestore = NULL;
|
||||
}
|
||||
|
||||
|
@ -390,7 +388,6 @@ unsigned RegScavenger::scavengeRegister(const TargetRegisterClass *RC,
|
|||
|
||||
// Doing this here leads to infinite regress.
|
||||
// ScavengedReg = SReg;
|
||||
ScavengedRC = RC;
|
||||
|
||||
DEBUG(dbgs() << "Scavenged register (with spill): " << TRI->getName(SReg) <<
|
||||
"\n");
|
||||
|
|
Loading…
Reference in New Issue