mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
nir/loop_analyze: Drop unused inverse_comparison
../src/compiler/nir/nir_loop_analyze.c:1134:1: warning: ‘inverse_comparison’ defined but not used [-Wunused-function] 1134 | inverse_comparison(nir_op alu_op) Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Italo Nicola <italonicola@collabora.com> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24428>
This commit is contained in:
parent
c885e906b3
commit
54ce1d9437
1 changed files with 0 additions and 29 deletions
|
|
@ -1130,35 +1130,6 @@ calculate_iterations(nir_ssa_def *basis, nir_ssa_def *limit_basis,
|
|||
return -1;
|
||||
}
|
||||
|
||||
static nir_op
|
||||
inverse_comparison(nir_op alu_op)
|
||||
{
|
||||
switch (alu_op) {
|
||||
case nir_op_fge:
|
||||
return nir_op_flt;
|
||||
case nir_op_ige:
|
||||
return nir_op_ilt;
|
||||
case nir_op_uge:
|
||||
return nir_op_ult;
|
||||
case nir_op_flt:
|
||||
return nir_op_fge;
|
||||
case nir_op_ilt:
|
||||
return nir_op_ige;
|
||||
case nir_op_ult:
|
||||
return nir_op_uge;
|
||||
case nir_op_feq:
|
||||
return nir_op_fneu;
|
||||
case nir_op_ieq:
|
||||
return nir_op_ine;
|
||||
case nir_op_fneu:
|
||||
return nir_op_feq;
|
||||
case nir_op_ine:
|
||||
return nir_op_ieq;
|
||||
default:
|
||||
unreachable("Unsuported comparison!");
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
get_induction_and_limit_vars(nir_ssa_scalar cond,
|
||||
nir_ssa_scalar *ind,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue