Change spill cost function back to inverse length of live range.
authorBen.Lippmeier@anu.edu.au <unknown>
Fri, 14 Sep 2007 16:14:08 +0000 (16:14 +0000)
committerBen.Lippmeier@anu.edu.au <unknown>
Fri, 14 Sep 2007 16:14:08 +0000 (16:14 +0000)
commit26248badb45ed7865c55a5f12250b6f42eccf823
tree8c3b64c40591d29f32d250e5cf3787364451f733
parent0a50b1a7c93cd121405dc09e7a4d2ab145aec0b7
Change spill cost function back to inverse length of live range.

On further testing it turns out that using Chaitin's spill cost formula
of counting the number of uses of a var and then dividing by the degree
of the node isn't actually a win. Perhaps because this isn't counting
the number of actual spills inserted in the output code.

This would be worth revisiting if other work manages to increase the
register pressure in the native code.
compiler/nativeGen/RegSpillCost.hs
compiler/utils/GraphColor.hs