Avoid using a loop in ReleasePred and ReleaseSucc methods to compute the
authorDan Gohman <gohman@apple.com>
Tue, 18 Nov 2008 00:38:59 +0000 (00:38 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 18 Nov 2008 00:38:59 +0000 (00:38 +0000)
commit2d093f356007979e2e071725a98894a36c3625e0
treea4497d6de68dcae4522b6cacf796eee2dc978f53
parentcd40233429fce385ae4b22301ce705273a6951a1
Avoid using a loop in ReleasePred and ReleaseSucc methods to compute the
new CycleBound value. Instead, just update CycleBound on each call.
Also, make ReleasePred and ReleaseSucc methods more consistent accross
the various schedulers.

This also happens to make ScheduleDAGRRList's CycleBound computation
somewhat more interesting, though it still doesn't have any noticeable
effect, because no current targets that use the register-pressure
reduction scheduler provide pipeline models.

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