intel/brw: Call constant combining after copy propagation/algebraic

This copy propagation can create MADs with immediates in src1, which
need to be cleaned up by constant combining (which puts them back in
VGRFs).

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27876>
This commit is contained in:
Kenneth Graunke 2023-12-30 16:28:45 -08:00 committed by Marge Bot
parent e8ef184677
commit bb191e3af5

View file

@ -146,8 +146,10 @@ brw_fs_optimize(fs_visitor &s)
OPT(brw_fs_lower_derivatives);
OPT(brw_fs_lower_regioning);
if (progress) {
if (OPT(brw_fs_opt_copy_propagation))
if (OPT(brw_fs_opt_copy_propagation)) {
OPT(brw_fs_opt_algebraic);
OPT(brw_fs_opt_combine_constants);
}
OPT(brw_fs_opt_dead_code_eliminate);
OPT(brw_fs_lower_simd_width);
}