[llvm-commits] [llvm] r41119 - /llvm/trunk/include/llvm/CodeGen/LiveInterval.h

Evan Cheng evan.cheng at apple.com
Thu Aug 16 00:25:37 PDT 2007


Author: evancheng
Date: Thu Aug 16 02:25:37 2007
New Revision: 41119

URL: http://llvm.org/viewvc/llvm-project?rev=41119&view=rev
Log:
Comments.

Modified:
    llvm/trunk/include/llvm/CodeGen/LiveInterval.h

Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveInterval.h?rev=41119&r1=41118&r2=41119&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveInterval.h Thu Aug 16 02:25:37 2007
@@ -88,10 +88,14 @@
     /// ValueNumberInfo - If the value number definition is undefined (e.g. phi
     /// merge point), it contains ~0u,x. If the value number is not in use, it
     /// contains ~1u,x to indicate that the value # is not used. 
+    ///   def   - Instruction # of the definition.
+    ///   reg   - Source reg iff val# is defined by a copy; zero otherwise.
+    ///   kills - Instruction # of the kills. If a kill is an odd #, it means
+    ///           the kill is a phi join point.
     struct VNInfo {
-      unsigned def;  // instruction # of the definition
-      unsigned reg;  // src reg: non-zero iff val# is defined by a copy
-      SmallVector<unsigned, 4> kills;  // instruction #s of the kills
+      unsigned def;
+      unsigned reg;
+      SmallVector<unsigned, 4> kills;
       VNInfo() : def(~1U), reg(0) {};
       VNInfo(unsigned d, unsigned r) : def(d), reg(r) {};
     };





More information about the llvm-commits mailing list