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)
commit2a8edef70b17f2736cbf4bf6f4cd676d1739b0e8
treee04a864859b4823d2cbc53541f749ce9d6ac34fb
parenteb33ced08f97b42f2fcd685abc0faf6608a3649b
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.

llvm-svn: 176314
llvm/lib/CodeGen/ScheduleDAG.cpp