intel/fs/ra: Choose a spill reg before throwing away the graph
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 15 May 2019 03:51:20 +0000 (22:51 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 16 May 2019 02:13:09 +0000 (02:13 +0000)
commitb2d274c6775003e8b6b4aa015a2d8c336fed6fdc
tree7d6784092f8d75d31daa8743d516d0d0526daaae
parentc19acf321c6ac1d356add78a01c56edb7c22f5f0
intel/fs/ra: Choose a spill reg before throwing away the graph

Otherwise, we get an effectively random spill reg because we no longer
have the information from RA to guide us.  Also, a completely clean
graph has undefined data in in_stack which is used for choosing the
spill reg so it really is non-deterministic.

Fixes: e99081e76d4 "intel/fs/ra: Spill without destroying the..."
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs_reg_allocate.cpp