diff options
| author | Dan Gohman <gohman@apple.com> | 2008-12-17 04:24:23 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-12-17 04:24:23 +0000 |
| commit | c50143a539f0199937133ee9111797db0ac8a0eb (patch) | |
| tree | 50478a1969d16071c53edafdbecb130c1f04798e /llvm | |
| parent | 6cf404f2d1d4973989483999ed74fe73887f7dc2 (diff) | |
| download | bcm5719-llvm-c50143a539f0199937133ee9111797db0ac8a0eb.tar.gz bcm5719-llvm-c50143a539f0199937133ee9111797db0ac8a0eb.zip | |
Fix the comments for getDepth and getHeight.
llvm-svn: 61120
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/ScheduleDAG.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/ScheduleDAG.h b/llvm/include/llvm/CodeGen/ScheduleDAG.h index b0164cee556..b7f2f575b02 100644 --- a/llvm/include/llvm/CodeGen/ScheduleDAG.h +++ b/llvm/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<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; |

