nir: Delete unused arg in get_iteration
authorElie TOURNIER <tournier.elie@gmail.com>
Tue, 21 Feb 2017 16:15:16 +0000 (16:15 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Mon, 27 Feb 2017 14:35:16 +0000 (14:35 +0000)
nir_const_value is not needed in get_iteration

Signed-off-by: Elie Tournier <tournier.elie@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/nir/nir_loop_analyze.c

index a5f464a45d11d86577e1b1523deb4a5252cddc98..6afad9e6033a9c1a88a008f622955af426ad8bc4 100644 (file)
@@ -359,7 +359,7 @@ find_loop_terminators(loop_info_state *state)
 
 static int32_t
 get_iteration(nir_op cond_op, nir_const_value *initial, nir_const_value *step,
-              nir_const_value *limit, nir_alu_instr *alu)
+              nir_const_value *limit)
 {
    int32_t iter;
 
@@ -490,7 +490,7 @@ calculate_iterations(nir_const_value *initial, nir_const_value *step,
       trip_offset = 1;
    }
 
-   int iter_int = get_iteration(cond_alu->op, initial, step, limit, alu);
+   int iter_int = get_iteration(cond_alu->op, initial, step, limit);
 
    /* If iter_int is negative the loop is ill-formed or is the conditional is
     * unsigned with a huge iteration count so don't bother going any further.