nak: DCE after legalize

This will be able to eliminate instructions if every use of an SSAValue
is eliminated by ConstTracker in legalize.

Reviewed-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38173>
This commit is contained in:
Mel Henning
2025-10-30 18:27:47 -04:00
committed by Marge Bot
parent 61abcb2bc8
commit 4890e91f49
+1
View File
@@ -461,6 +461,7 @@ fn nak_compile_shader_internal(
pass!(s, opt_dce);
pass!(s, opt_out);
pass!(s, legalize);
pass!(s, opt_dce);
pass!(s, assign_regs);
pass!(s, lower_par_copies);
pass!(s, lower_copy_swap);