lima/ppir: improve regalloc spill cost calculation
authorErico Nunes <nunes.erico@gmail.com>
Tue, 27 Aug 2019 23:09:12 +0000 (01:09 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Thu, 5 Sep 2019 23:29:24 +0000 (23:29 +0000)
commit17bb437ac226fe69470615575186eb2ab5b7461d
tree8610f477f32e4fe663d8c399ee99799f7568a4e8
parent7b2f195d0b34332c2ed0d6550f839cb1922caf0c
lima/ppir: improve regalloc spill cost calculation

Now that spilling ops can be inserted into existing instructions, it
makes sense to increase cost to spill registers that would cause the
creation of a new instruction.
Experimental results showed that penalizing too much due to this caused
worse results, however it is beneficial as a tie resolver between
registers with the same number of components.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/pp/regalloc.c