v3d: Drop unused count_nir_instrs() helper.
authorEric Anholt <eric@anholt.net>
Sat, 29 Dec 2018 20:30:19 +0000 (12:30 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 30 Dec 2018 16:03:51 +0000 (08:03 -0800)
This was for shader-db, but I haven't cared about NIR instruction counts
in a long time.

src/broadcom/compiler/nir_to_vir.c

index b6dd188..0f6da64 100644 (file)
@@ -2009,24 +2009,6 @@ const nir_shader_compiler_options v3d_nir_options = {
         .native_integers = true,
 };
 
-
-#if 0
-static int
-count_nir_instrs(nir_shader *nir)
-{
-        int count = 0;
-        nir_foreach_function(function, nir) {
-                if (!function->impl)
-                        continue;
-                nir_foreach_block(block, function->impl) {
-                        nir_foreach_instr(instr, block)
-                                count++;
-                }
-        }
-        return count;
-}
-#endif
-
 /**
  * When demoting a shader down to single-threaded, removes the THRSW
  * instructions (one will still be inserted at v3d_vir_to_qpu() for the