jay: call DCE an extra time

Totals:
Instrs: 2767235 -> 2765908 (-0.05%); split: -0.10%, +0.05%
CodeSize: 44349488 -> 44328688 (-0.05%); split: -0.10%, +0.06%

Totals from 347 (13.11% of 2647) affected shaders:
Instrs: 718067 -> 716740 (-0.18%); split: -0.39%, +0.20%
CodeSize: 11626032 -> 11605232 (-0.18%); split: -0.39%, +0.21%

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41064>
This commit is contained in:
Alyssa Rosenzweig 2026-04-16 10:28:50 -04:00 committed by Marge Bot
parent d85eb51e17
commit 56ffad0c3a

View file

@ -2624,8 +2624,14 @@ jay_compile(const struct intel_device_info *devinfo,
jay_validate(s, "NIR->Jay translation");
/* After each propagation pass, eliminate dead code. This ensures use counts
* are correct in jay_opt_propagate_backwards which allows more progress. We
* don't do a progress loop - just run DCE an extra time. DCE is cheap.
*/
if (!(jay_debug & JAY_DBG_NOOPT)) {
JAY_PASS(s, jay_opt_propagate_forwards);
JAY_PASS(s, jay_opt_dead_code);
JAY_PASS(s, jay_opt_propagate_backwards);
JAY_PASS(s, jay_opt_dead_code);
}