summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorElie TOURNIER <[email protected]>2017-02-21 16:15:16 +0000
committerEric Engestrom <[email protected]>2017-02-27 14:35:16 +0000
commit082d5b1aee5846cfaa09b7cef94e8f3ee3737867 (patch)
treef99e4653d5c7b7441216c0f066801c2cb79140f5 /src/compiler/nir
parent077879cf5e6b90023fb495e36d05bb9d0960bbd0 (diff)
nir: Delete unused arg in get_iteration
nir_const_value is not needed in get_iteration Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_loop_analyze.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_loop_analyze.c b/src/compiler/nir/nir_loop_analyze.c
index a5f464a45d1..6afad9e6033 100644
--- a/src/compiler/nir/nir_loop_analyze.c
+++ b/src/compiler/nir/nir_loop_analyze.c
@@ -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.