forked from OSchip/llvm-project
parent
1dc4a77a23
commit
52ee45d64a
|
@ -85,17 +85,11 @@ public:
|
||||||
///
|
///
|
||||||
SparseBitVector<> AliveBlocks;
|
SparseBitVector<> AliveBlocks;
|
||||||
|
|
||||||
/// NumUses - Number of uses of this register across the entire function.
|
|
||||||
///
|
|
||||||
unsigned NumUses;
|
|
||||||
|
|
||||||
/// Kills - List of MachineInstruction's which are the last use of this
|
/// Kills - List of MachineInstruction's which are the last use of this
|
||||||
/// virtual register (kill it) in their basic block.
|
/// virtual register (kill it) in their basic block.
|
||||||
///
|
///
|
||||||
std::vector<MachineInstr*> Kills;
|
std::vector<MachineInstr*> Kills;
|
||||||
|
|
||||||
VarInfo() : NumUses(0) {}
|
|
||||||
|
|
||||||
/// removeKill - Delete a kill corresponding to the specified
|
/// removeKill - Delete a kill corresponding to the specified
|
||||||
/// machine instruction. Returns true if there was a kill
|
/// machine instruction. Returns true if there was a kill
|
||||||
/// corresponding to this instruction, false otherwise.
|
/// corresponding to this instruction, false otherwise.
|
||||||
|
|
|
@ -130,7 +130,6 @@ void LiveVariables::HandleVirtRegUse(unsigned reg, MachineBasicBlock *MBB,
|
||||||
unsigned BBNum = MBB->getNumber();
|
unsigned BBNum = MBB->getNumber();
|
||||||
|
|
||||||
VarInfo& VRInfo = getVarInfo(reg);
|
VarInfo& VRInfo = getVarInfo(reg);
|
||||||
VRInfo.NumUses++;
|
|
||||||
|
|
||||||
// Check to see if this basic block is already a kill block.
|
// Check to see if this basic block is already a kill block.
|
||||||
if (!VRInfo.Kills.empty() && VRInfo.Kills.back()->getParent() == MBB) {
|
if (!VRInfo.Kills.empty() && VRInfo.Kills.back()->getParent() == MBB) {
|
||||||
|
|
|
@ -241,7 +241,6 @@ void PHIElimination::LowerAtomicPHINode(
|
||||||
LiveVariables::VarInfo &VI = LV->getVarInfo(IncomingReg);
|
LiveVariables::VarInfo &VI = LV->getVarInfo(IncomingReg);
|
||||||
|
|
||||||
// Increment use count of the newly created virtual register.
|
// Increment use count of the newly created virtual register.
|
||||||
VI.NumUses++;
|
|
||||||
LV->setPHIJoin(IncomingReg);
|
LV->setPHIJoin(IncomingReg);
|
||||||
|
|
||||||
// When we are reusing the incoming register, it may already have been
|
// When we are reusing the incoming register, it may already have been
|
||||||
|
|
Loading…
Reference in New Issue