radv,aco: scalarize all phis via nir_lower_phis_to_scalar()
This allows to remove some ACO code which did so previously. Totals from 93 (0.06% of 149839) affected shaders (Navi2): CodeSize: 582424 -> 582348 (-0.01%); split: -0.10%, +0.08% Instrs: 107083 -> 107011 (-0.07%); split: -0.08%, +0.01% Latency: 483338 -> 484881 (+0.32%); split: -0.09%, +0.40% InvThroughput: 101129 -> 101532 (+0.40%); split: -0.03%, +0.42% Copies: 9893 -> 9774 (-1.20%); split: -1.28%, +0.08% Branches: 2862 -> 2858 (-0.14%) PreSGPRs: 3342 -> 3339 (-0.09%) PreVGPRs: 4567 -> 4565 (-0.04%) Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11181>
This commit is contained in:
committed by
Marge Bot
parent
057a702a3f
commit
dc807dff3e
@@ -509,7 +509,7 @@ setup_nir(isel_context *ctx, nir_shader *nir)
|
||||
setup_variables(ctx, nir);
|
||||
|
||||
nir_convert_to_lcssa(nir, true, false);
|
||||
nir_lower_phis_to_scalar(nir, false);
|
||||
nir_lower_phis_to_scalar(nir, true);
|
||||
|
||||
nir_function_impl *func = nir_shader_get_entrypoint(nir);
|
||||
nir_index_ssa_defs(func);
|
||||
|
||||
Reference in New Issue
Block a user