Fix the comments for getDepth and getHeight.
authorDan Gohman <gohman@apple.com>
Wed, 17 Dec 2008 04:24:23 +0000 (04:24 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 17 Dec 2008 04:24:23 +0000 (04:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61120 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ScheduleDAG.h

index b0164cee5562e7b5c9f6c59c7d1b31a46af62dd6..b7f2f575b025c40cdf58aabe8ac63852ed37a4a1 100644 (file)
@@ -312,15 +312,15 @@ namespace llvm {
     /// 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;