lima/ppir: use ra_get_best_spill_node to select spill node
authorErico Nunes <nunes.erico@gmail.com>
Sun, 18 Aug 2019 23:04:57 +0000 (01:04 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Tue, 20 Aug 2019 21:16:02 +0000 (21:16 +0000)
commit71fb721ca5b6761ff974b64d8f6d5efd51a691e9
treebb104aa00adb7853249aac30430c496c1ce5a933
parentc1dc84e71d11ed7e2ca95286522ddbdf3cc12c95
lima/ppir: use ra_get_best_spill_node to select spill node

ra_get_best_spill_node is what other users of the mesa register
allocator use.
Switching to it now also fixes an infinite loop issue with ppir regalloc
with the ppir control flow patchset, and also provides a small gain over
the previous herusitic on number of spilled nodes testing with
shader-db.

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