pan/mdg: Drop `opt` in name of midgard_opt_cull_dead_branch
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 30 Apr 2020 17:13:24 +0000 (13:13 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 18:26:36 +0000 (18:26 +0000)
It's necessary for conformance - not an optimization.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4852>

src/panfrost/midgard/midgard_compile.c

index 583b9c3726c440cc3e0077dfbb88ace55ed0ae4f..de2f0164bc31338509734ece7f63bf3c92f07333 100644 (file)
@@ -2166,7 +2166,7 @@ embedded_to_inline_constant(compiler_context *ctx, midgard_block *block)
  * per block is legal semantically */
 
 static void
-midgard_opt_cull_dead_branch(compiler_context *ctx, midgard_block *block)
+midgard_cull_dead_branch(compiler_context *ctx, midgard_block *block)
 {
         bool branched = false;
 
@@ -2611,7 +2611,7 @@ midgard_compile_shader_nir(nir_shader *nir, panfrost_program *program, bool is_b
          * them */
         mir_foreach_block(ctx, _block) {
                 midgard_block *block = (midgard_block *) _block;
-                midgard_opt_cull_dead_branch(ctx, block);
+                midgard_cull_dead_branch(ctx, block);
         }
 
         /* Ensure we were lowered */