Instructions schedulers should report correct height/depth.
authorAndrew Trick <atrick@apple.com>
Fri, 1 Mar 2013 00:19:09 +0000 (00:19 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 1 Mar 2013 00:19:09 +0000 (00:19 +0000)
commitbf32b7f8446334b4a8fab0cc4153ed02046271b2
tree9631f5e578f32a6b1e40cff6e37ed419d941e8d4
parenta56f411961c41d8b4f6ffc62c95c5fc95fbac8c8
Instructions schedulers should report correct height/depth.

We avoided computing DAG height/depth during Node printing because it
shouldn't depend on an otherwise valid DAG. But this has become far
too annoying for the common case of a valid DAG where we want to see
valid values. If doing the computation on-the-fly turns out to be a
problem in practice, then I'll add a mode to the diagnostics to only
force it when we're likely to have a valid DAG, otherwise explicitly
print INVALID instead of bogus numbers. For now, just go for it all
the time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176314 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ScheduleDAG.cpp