nir: remove unused variable
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 13 Dec 2018 14:25:57 +0000 (15:25 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 13 Dec 2018 15:35:21 +0000 (16:35 +0100)
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@intel.com>
src/compiler/nir/nir_loop_analyze.c

index 3de45401975eb13fcb5c4e2873fc18a222b846ce..259f02a854ec44c0466bcf18d31c041bf9da3464 100644 (file)
@@ -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;