intel/fs: run VGRF compaction just before max live register accounting
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 17 Mar 2023 07:42:31 +0000 (09:42 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Apr 2023 12:32:56 +0000 (12:32 +0000)
commit34d8bfe65f47df92efe83d902522297614f9a44a
treee062d257ab1c136a30a8b2b6d8ccb4a6d8a962c1
parent554b28d0b12f8e96da16a570b07ba307e8b1244a
intel/fs: run VGRF compaction just before max live register accounting

There are a number of instances of the dead code elimination pass that
could reduce the count. For some reason this also seems to affect
register allocation itself.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21853>
src/intel/compiler/brw_fs.cpp