Mesa (master): nir: remove unused variable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 13 15:36:14 UTC 2018


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

Author: Alejandro Piñeiro <apinheiro at igalia.com>
Date:   Thu Dec 13 15:25:57 2018 +0100

nir: remove unused variable

To avoid the following warning:
./src/compiler/nir/nir_loop_analyze.c:807:16: warning: unused variable ‘ns’ [-Wunused-variable]
    nir_shader *ns = impl->function->shader;
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/compiler/nir/nir_loop_analyze.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/compiler/nir/nir_loop_analyze.c b/src/compiler/nir/nir_loop_analyze.c
index 3de4540197..259f02a854 100644
--- a/src/compiler/nir/nir_loop_analyze.c
+++ b/src/compiler/nir/nir_loop_analyze.c
@@ -803,7 +803,6 @@ get_loop_info(loop_info_state *state, nir_function_impl *impl)
    /* Run through each of the terminators and try to compute a trip-count */
    find_trip_count(state);
 
-   nir_shader *ns = impl->function->shader;
    nir_foreach_block_in_cf_node(block, &state->loop->cf_node) {
       if (force_unroll_heuristics(state, block)) {
          state->loop->info->force_unroll = true;




More information about the mesa-commit mailing list