Try schedule def + use closer whne Sethi-Ullman numbers are the same.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 13 Mar 2007 23:25:11 +0000 (23:25 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 13 Mar 2007 23:25:11 +0000 (23:25 +0000)
commit61230d18d21a5dca1378e994f43934e4b314e595
tree18a7736d2d6b2a3ef6b393b6d362d734261d5ac8
parenta13fd108f2c77adc60045859f1df4923b59a9d10
Try schedule def + use closer whne Sethi-Ullman numbers are the same.
e.g.
t1 = op t2, c1
t3 = op t4, c2
and the following instructions are both ready.
t2 = op c3
t4 = op c4

Then schedule t2 = op first.
i.e.
t4 = op c4
t2 = op c3
t1 = op t2, c1
t3 = op t4, c2

This creates more short live intervals which work better with the register
allocator.

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