summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-17 04:25:52 +0000
committerDan Gohman <gohman@apple.com>2008-12-17 04:25:52 +0000
commit2a16bbe394491d97482411921570cc9650e955db (patch)
tree13e2cc543d50822be926aea85a2cf140ba62ef53 /llvm
parentc50143a539f0199937133ee9111797db0ac8a0eb (diff)
downloadbcm5719-llvm-2a16bbe394491d97482411921570cc9650e955db.tar.gz
bcm5719-llvm-2a16bbe394491d97482411921570cc9650e955db.zip
Use getDepth() and getHeight() instead of accessing the
Depth and Height members directly, as they may not be current. llvm-svn: 61121
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/ScheduleDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAG.cpp b/llvm/lib/CodeGen/ScheduleDAG.cpp
index dad5eb5d9b3..f9ec225f3eb 100644
--- a/llvm/lib/CodeGen/ScheduleDAG.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAG.cpp
@@ -150,7 +150,7 @@ void SUnit::setHeightDirty() {
/// fact that this node's depth just increased.
///
void SUnit::setDepthToAtLeast(unsigned NewDepth) {
- if (NewDepth <= Depth)
+ if (NewDepth <= getDepth())
return;
setDepthDirty();
Depth = NewDepth;
@@ -161,7 +161,7 @@ void SUnit::setDepthToAtLeast(unsigned NewDepth) {
/// fact that this node's height just increased.
///
void SUnit::setHeightToAtLeast(unsigned NewHeight) {
- if (NewHeight <= Height)
+ if (NewHeight <= getHeight())
return;
setHeightDirty();
Height = NewHeight;
OpenPOWER on IntegriCloud