aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ScheduleDAG.cpp
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
commitfccf6dd377959560aafdde40b92fc749471eeae5 (patch)
treeb4acda35965496e2329a6ce44f6d08143b753fb1 /lib/CodeGen/ScheduleDAG.cpp
parent89bf4f2f5e6f54fe6382f07c515e36adc9e0c9c2 (diff)
downloadexternal_llvm-fccf6dd377959560aafdde40b92fc749471eeae5.zip
external_llvm-fccf6dd377959560aafdde40b92fc749471eeae5.tar.gz
external_llvm-fccf6dd377959560aafdde40b92fc749471eeae5.tar.bz2
Use getDepth() and getHeight() instead of accessing the
Depth and Height members directly, as they may not be current. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAG.cpp')
-rw-r--r--lib/CodeGen/ScheduleDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/ScheduleDAG.cpp b/lib/CodeGen/ScheduleDAG.cpp
index dad5eb5..f9ec225 100644
--- a/lib/CodeGen/ScheduleDAG.cpp
+++ b/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;