[llvm-commits] [llvm] r61121 - /llvm/trunk/lib/CodeGen/ScheduleDAG.cpp
Dan Gohman
gohman at apple.com
Tue Dec 16 20:25:53 PST 2008
Author: djg
Date: Tue Dec 16 22:25:52 2008
New Revision: 61121
URL: http://llvm.org/viewvc/llvm-project?rev=61121&view=rev
Log:
Use getDepth() and getHeight() instead of accessing the
Depth and Height members directly, as they may not be
current.
Modified:
llvm/trunk/lib/CodeGen/ScheduleDAG.cpp
Modified: llvm/trunk/lib/CodeGen/ScheduleDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAG.cpp?rev=61121&r1=61120&r2=61121&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAG.cpp Tue Dec 16 22:25:52 2008
@@ -150,7 +150,7 @@
/// 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 @@
/// fact that this node's height just increased.
///
void SUnit::setHeightToAtLeast(unsigned NewHeight) {
- if (NewHeight <= Height)
+ if (NewHeight <= getHeight())
return;
setHeightDirty();
Height = NewHeight;
More information about the llvm-commits
mailing list