intel/fs: Skip registers faster when setting spill costs
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 3 Jun 2019 22:09:12 +0000 (17:09 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 4 Jun 2019 14:37:56 +0000 (14:37 +0000)
commita84de3fb7c1198f7cbd3b20a4231c14a7010f97f
tree1b804ce408f2281d0519dfb3ca0e171de396b8b7
parentd68218dbca9c41d94e1547e82b6930750d9edb66
intel/fs: Skip registers faster when setting spill costs

This might be slightly faster since we're doing one read rather than
two before we decide to skip.  The more important reason, however, is
because no_spill prevents us from re-spilling spill registers.  In the
new world in which we don't re-calculate liveness every spill, we may
not have valid liveness for spill registers so we shouldn't even look
their live ranges up.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110825
Fixes: e99081e76d4 "intel/fs/ra: Spill without destroying the..."
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tested-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/compiler/brw_fs_reg_allocate.cpp