diff options
author | Connor Abbott <[email protected]> | 2019-06-26 14:03:31 +0200 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-07-29 11:37:46 +0200 |
commit | a69ab1b7d2a7b34188f38c5e130abd264518b8ad (patch) | |
tree | ca2a3a5d1fd284df938349849cd8dea02309e8b4 /src/amd/vulkan/radv_shader.c | |
parent | 156306e5e62fb4fda0e829c5798fffdf7eb1907c (diff) |
radv: Delete unused local variables in optimization loop
Totals from affected shaders:
SGPRS: 376 -> 376 (0.00 %)
VGPRS: 620 -> 560 (-9.68 %)
Spilled SGPRs: 0 -> 0 (0.00 %)
Spilled VGPRs: 0 -> 0 (0.00 %)
Private memory VGPRs: 0 -> 0 (0.00 %)
Scratch size: 292 -> 292 (0.00 %) dwords per thread
Code Size: 20024 -> 20144 (0.60 %) bytes
LDS: 0 -> 0 (0.00 %) blocks
Max Waves: 25 -> 25 (0.00 %)
Wait states: 0 -> 0 (0.00 %)
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.c')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 56f421026b7..0c3e375ee5e 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -153,6 +153,8 @@ radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively, NIR_PASS(progress, shader, nir_opt_copy_prop_vars); NIR_PASS(progress, shader, nir_opt_dead_write_vars); + NIR_PASS(progress, shader, nir_remove_dead_variables, + nir_var_function_temp); NIR_PASS_V(shader, nir_lower_alu_to_scalar, NULL); NIR_PASS_V(shader, nir_lower_phis_to_scalar); |