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

Chris Lattner lattner at cs.uiuc.edu
Sun Jul 18 23:26:56 PDT 2004



Changes in directory llvm/include/llvm/CodeGen:

LiveVariables.h updated: 1.15 -> 1.16

---
Log message:

Remove the DefBlock element of VarInfo.  DefBlock is always DefInst->getParent()


---
Diffs of the changes:  (+2 -3)

Index: llvm/include/llvm/CodeGen/LiveVariables.h
diff -u llvm/include/llvm/CodeGen/LiveVariables.h:1.15 llvm/include/llvm/CodeGen/LiveVariables.h:1.16
--- llvm/include/llvm/CodeGen/LiveVariables.h:1.15	Thu Jul  1 01:14:57 2004
+++ llvm/include/llvm/CodeGen/LiveVariables.h	Mon Jul 19 01:26:45 2004
@@ -39,8 +39,7 @@
 class LiveVariables : public MachineFunctionPass {
 public:
   struct VarInfo {
-    /// DefBlock - The basic block which defines this value...
-    MachineBasicBlock *DefBlock;
+    /// DefInst - The machine instruction that defines this register.
     MachineInstr      *DefInst;
 
     /// AliveBlocks - Set of blocks of which this value is alive completely
@@ -55,7 +54,7 @@
     ///
     std::vector<std::pair<MachineBasicBlock*, MachineInstr*> > Kills;
 
-    VarInfo() : DefBlock(0), DefInst(0) {}
+    VarInfo() : DefInst(0) {}
 
     /// removeKill - Delete a kill corresponding to the specified
     /// machine instruction. Returns true if there was a kill





More information about the llvm-commits mailing list