Delete an unused member variable.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 20 Jan 2012 22:48:59 +0000 (22:48 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 20 Jan 2012 22:48:59 +0000 (22:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148594 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LiveVariables.h
lib/CodeGen/LiveVariables.cpp
lib/CodeGen/PHIElimination.cpp

index 7ba901fc28a4ebde878ecb19ad570ac2b9b94cc4..71062a2a51965594c147955fa742e37d95b99c15 100644 (file)
@@ -85,17 +85,11 @@ public:
     ///
     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
     /// virtual register (kill it) in their basic block.
     ///
     std::vector<MachineInstr*> Kills;
 
-    VarInfo() : NumUses(0) {}
-
     /// removeKill - Delete a kill corresponding to the specified
     /// machine instruction. Returns true if there was a kill
     /// corresponding to this instruction, false otherwise.
index 96d36c8e56a1c44a12a9f243f847f7b8d928b03a..77df27cc9795c154bff6e382592fe216e6d28c20 100644 (file)
@@ -130,7 +130,6 @@ void LiveVariables::HandleVirtRegUse(unsigned reg, MachineBasicBlock *MBB,
   unsigned BBNum = MBB->getNumber();
 
   VarInfo& VRInfo = getVarInfo(reg);
-  VRInfo.NumUses++;
 
   // Check to see if this basic block is already a kill block.
   if (!VRInfo.Kills.empty() && VRInfo.Kills.back()->getParent() == MBB) {
index 0e52496f00c970c5977136982e3c7f3d04749591..556fb406566c2e38cdd71ef68ba647a147995457 100644 (file)
@@ -241,7 +241,6 @@ void PHIElimination::LowerAtomicPHINode(
       LiveVariables::VarInfo &VI = LV->getVarInfo(IncomingReg);
 
       // Increment use count of the newly created virtual register.
-      VI.NumUses++;
       LV->setPHIJoin(IncomingReg);
 
       // When we are reusing the incoming register, it may already have been