Mesa (main): intel/compiler: call nir_opt_dead_cf() after we have finished all opts

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 21 14:48:27 UTC 2021


Module: Mesa
Branch: main
Commit: c742a99fb6cf96ffa9c8c5fffc7d6a9057c5671d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c742a99fb6cf96ffa9c8c5fffc7d6a9057c5671d

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Mon Mar 25 20:31:34 2019 +1100

intel/compiler: call nir_opt_dead_cf() after we have finished all opts

This will avoid a regression with the following patch.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/597>

---

 src/intel/compiler/brw_nir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index d27af2c0ec2..37da6965ba3 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -1192,6 +1192,7 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
    OPT(nir_copy_prop);
    OPT(nir_opt_dce);
    OPT(nir_opt_move, nir_move_comparisons);
+   OPT(nir_opt_dead_cf);
 
    OPT(nir_lower_bool_to_int32);
    OPT(nir_copy_prop);



More information about the mesa-commit mailing list