[llvm-commits] CVS: llvm/include/llvm/CodeGen/RegisterScavenging.h

Evan Cheng evan.cheng at apple.com
Tue Feb 27 14:59:01 PST 2007



Changes in directory llvm/include/llvm/CodeGen:

RegisterScavenging.h updated: 1.4 -> 1.5
---
Log message:

Some more code clean up.

---
Diffs of the changes:  (+6 -5)

 RegisterScavenging.h |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/CodeGen/RegisterScavenging.h
diff -u llvm/include/llvm/CodeGen/RegisterScavenging.h:1.4 llvm/include/llvm/CodeGen/RegisterScavenging.h:1.5
--- llvm/include/llvm/CodeGen/RegisterScavenging.h:1.4	Tue Feb 27 16:10:52 2007
+++ llvm/include/llvm/CodeGen/RegisterScavenging.h	Tue Feb 27 16:58:43 2007
@@ -29,8 +29,9 @@
   MachineBasicBlock::iterator MBBI;
   unsigned NumPhysRegs;
 
-  /// Initialized - All states are initialized and ready to go!
-  bool Initialized;
+  /// Tracking - True if RegScavenger is currently tracking the liveness of 
+  /// registers.
+  bool Tracking;
 
   /// RegStates - The current state of all the physical registers immediately
   /// before MBBI. One bit per physical register. If bit is set that means it's
@@ -39,14 +40,14 @@
 
 public:
   RegScavenger()
-    : MBB(NULL), Initialized(false) {};
+    : MBB(NULL), NumPhysRegs(0), Tracking(false) {};
 
   RegScavenger(MachineBasicBlock *mbb)
-    : MBB(mbb), Initialized(false) {};
+    : MBB(mbb), NumPhysRegs(0), Tracking(false) {};
 
   /// Init - Initialize the states.
   ///
-  void init(MachineBasicBlock *mbb = NULL);
+  void init(MachineBasicBlock *mbb);
 
   /// Reset - Discard previous states and re-initialize the states given for
   /// the specific basic block.






More information about the llvm-commits mailing list