aco/spill: refactor live-in registerDemand calculation
authorDaniel Schürmann <daniel@schuermann.dev>
Mon, 22 Feb 2021 17:02:24 +0000 (18:02 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Apr 2021 18:40:57 +0000 (18:40 +0000)
commitb56ea19111c1da5a2adb24f7e1a0cfee78fb4152
tree96ad308e4590cca862f9931e88e3bbed2101ea83
parent282eacc3e0403fba198060c585f91723790ee5e7
aco/spill: refactor live-in registerDemand calculation

This also fixes some hypothetical issue for loops without phis
and for loops with higher register pressure at the end of the
loop preheader.

No fossil-db changes.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9196>
src/amd/compiler/aco_spill.cpp