From: Dan Gohman Date: Wed, 17 Dec 2008 04:24:23 +0000 (+0000) Subject: Fix the comments for getDepth and getHeight. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=89bf4f2f5e6f54fe6382f07c515e36adc9e0c9c2;p=oota-llvm.git Fix the comments for getDepth and getHeight. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61120 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index b0164cee556..b7f2f575b02 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -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(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(this)->ComputeHeight(); return Height;