diff options
author | Jason Ekstrand <[email protected]> | 2015-04-01 12:37:43 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-04-01 12:51:04 -0700 |
commit | b9d7454571029ab330f28164fe6869f5e455ca90 (patch) | |
tree | c845737255e3f751a22811d8e1ebcaffde5aac41 /src/mesa/drivers | |
parent | 37703040a142da6bc7c458479a70e35118e10e6b (diff) |
i965/nir: Run DCE again before going out of SSA
We run lowering and optimization passes that might leave garbage lying
around. This keeps the FS cse from having to clean it up.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 94641cf2ec1..4dfb4d693ae 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -163,6 +163,8 @@ fs_visitor::emit_nir_code() nir_validate_shader(nir); nir_copy_prop(nir); nir_validate_shader(nir); + nir_opt_dce(nir); + nir_validate_shader(nir); if (unlikely(debug_enabled)) { fprintf(stderr, "NIR (SSA form) for %s shader:\n", stage_name); |