Estimate a cost using the possible number of scratch registers required and use
authorEvan Cheng <evan.cheng@apple.com>
Wed, 14 Mar 2007 22:43:40 +0000 (22:43 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 14 Mar 2007 22:43:40 +0000 (22:43 +0000)
commitc6deb3d44707de57e82e16642ab845bc8b9e9e01
tree52fca56ea4b65384370c3a9ef5310eda3ecefd3c
parentba693005e9bfad78835f3280aa204233fc882f63
Estimate a cost using the possible number of scratch registers required and use
it as a late BURR scheduling tie-breaker.
Intuitively, it's good to push down instructions whose results are liveout so
their long live ranges won't conflict with other values which are needed inside
the BB. Further prioritize liveout instructions by the number of operands which
are calculated within the BB.

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