nir: Remove nir_if_rewrite_condition_ssa
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 6 Apr 2023 21:16:36 +0000 (17:16 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Apr 2023 23:48:03 +0000 (23:48 +0000)
Now unused.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22343>

src/compiler/nir/nir.h

index d5d5e24..4c3fa21 100644 (file)
@@ -4363,15 +4363,6 @@ nir_instr_rewrite_src_ssa(ASSERTED nir_instr *instr,
 void nir_instr_rewrite_src(nir_instr *instr, nir_src *src, nir_src new_src);
 void nir_instr_move_src(nir_instr *dest_instr, nir_src *dest, nir_src *src);
 
-static inline void
-nir_if_rewrite_condition_ssa(ASSERTED nir_if *if_stmt,
-                             nir_src *src, nir_ssa_def *new_ssa)
-{
-   assert(src->is_if);
-   assert(src->parent_if == if_stmt);
-   nir_src_rewrite_ssa(src, new_ssa);
-}
-
 void nir_if_rewrite_condition(nir_if *if_stmt, nir_src new_src);
 void nir_instr_rewrite_dest(nir_instr *instr, nir_dest *dest,
                             nir_dest new_dest);