[llvm-commits] [llvm] r61120 -	/llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
    Dan Gohman 
    gohman at apple.com
       
    Tue Dec 16 20:24:26 PST 2008
    
    
  
Author: djg
Date: Tue Dec 16 22:24:23 2008
New Revision: 61120
URL: http://llvm.org/viewvc/llvm-project?rev=61120&view=rev
Log:
Fix the comments for getDepth and getHeight.
Modified:
    llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
Modified: llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h?rev=61120&r1=61119&r2=61120&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h Tue Dec 16 22:24:23 2008
@@ -312,15 +312,15 @@
     /// the specified node.
     void removePred(const SDep &D);
 
-    /// getHeight - Return the height of this node, which is the length of the
-    /// maximum path down to any node with has no successors.
+    /// getDepth - Return the depth of this node, which is the length of the
+    /// maximum path up to any node with has no predecessors.
     unsigned getDepth() const {
       if (!isDepthCurrent) const_cast<SUnit *>(this)->ComputeDepth();
       return Depth;
     }
 
     /// getHeight - Return the height of this node, which is the length of the
-    /// maximum path up to any node with has no predecessors.
+    /// maximum path down to any node with has no successors.
     unsigned getHeight() const {
       if (!isHeightCurrent) const_cast<SUnit *>(this)->ComputeHeight();
       return Height;
    
    
More information about the llvm-commits
mailing list