nir: silence a couple new compiler warnings
[33/630] Compiling C object 'src/compiler/nir/nir@sta/nir_loop_analyze.c.o'. ../src/compiler/nir/nir_loop_analyze.c: In function ‘try_find_trip_count_vars_in_iand’: ../src/compiler/nir/nir_loop_analyze.c:846:29: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (*ind == NULL || *ind && (*ind)->type != basic_induction || ^ [85/630] Compiling C object 'src/compiler/nir/nir@sta/nir_opt_loop_unroll.c.o'. ../src/compiler/nir/nir_opt_loop_unroll.c: In function ‘complex_unroll_single_terminator’: ../src/compiler/nir/nir_opt_loop_unroll.c:494:17: warning: unused variable ‘unroll_loc’ [-Wunused-variable] nir_cf_node *unroll_loc = ^ Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:

committed by
Timothy Arceri

parent
587ad37e72
commit
02c2863df5
@@ -491,7 +491,7 @@ complex_unroll_single_terminator(nir_loop *loop)
|
||||
unsigned num_times_to_clone = loop->info->max_trip_count + 1;
|
||||
|
||||
nir_cf_list lp_body;
|
||||
nir_cf_node *unroll_loc =
|
||||
MAYBE_UNUSED nir_cf_node *unroll_loc =
|
||||
complex_unroll_loop_body(loop, terminator, &lp_header, &lp_body,
|
||||
remap_table, num_times_to_clone);
|
||||
|
||||
|
Reference in New Issue
Block a user