Don't advance the hazard recognizer when there are no hazards and no instructions
authorChris Lattner <sabre@nondot.org>
Sun, 12 Mar 2006 09:01:41 +0000 (09:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Mar 2006 09:01:41 +0000 (09:01 +0000)
commitfc3549ee8ccf15ab3fad8ec18a299eef0aa53b41
tree56b766a99da575e78ab3cad78a8395362f72a201
parentb2215030d6a6c3096ed5da8fde43c4eed7165768
Don't advance the hazard recognizer when there are no hazards and no instructions
to be emitted.

Don't add one to the latency of a completed instruction if the latency of the
op is 0.

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