Module: Mesa Branch: main Commit: 54ce1d94376ba0e5b15dda8752de678a44a2edd6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=54ce1d94376ba0e5b15dda8752de678a44a2edd6
Author: Alyssa Rosenzweig <[email protected]> Date: Tue Aug 1 10:45:12 2023 -0400 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 <[email protected]> Reviewed-by: Italo Nicola <[email protected]> Acked-by: Faith Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24428> --- src/compiler/nir/nir_loop_analyze.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/compiler/nir/nir_loop_analyze.c b/src/compiler/nir/nir_loop_analyze.c index 0e92a390f84..376b4097cae 100644 --- a/src/compiler/nir/nir_loop_analyze.c +++ b/src/compiler/nir/nir_loop_analyze.c @@ -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,
