aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2018-12-13 15:25:57 +0100
committerAlejandro Piñeiro <[email protected]>2018-12-13 16:35:21 +0100
commitc7bdcd67aaa39338440fcfee6d679919411feb08 (patch)
treeb5540c02afefd05f78be3a7edc8ddf74fb6f2cbc /src/compiler/nir
parente888f28d1fd9f125fc70b2f5d1b3c42d8f25ae53 (diff)
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 <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_loop_analyze.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_loop_analyze.c b/src/compiler/nir/nir_loop_analyze.c
index 3de45401975..259f02a854e 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;