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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user