diff options
author | Eric Anholt <[email protected]> | 2018-12-29 12:30:19 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-12-30 08:03:51 -0800 |
commit | a7c9fd757360dd6accfecbd3347a37b3203cf4f1 (patch) | |
tree | 9b9238560857f37a3ce6eeb7c86aba4e7c9aca1e /src/broadcom/compiler/nir_to_vir.c | |
parent | 696f63f1b472acd5efe32910c714469728fb5162 (diff) |
v3d: Drop unused count_nir_instrs() helper.
This was for shader-db, but I haven't cared about NIR instruction counts
in a long time.
Diffstat (limited to 'src/broadcom/compiler/nir_to_vir.c')
-rw-r--r-- | src/broadcom/compiler/nir_to_vir.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c index b6dd188778a..0f6da641538 100644 --- a/src/broadcom/compiler/nir_to_vir.c +++ b/src/broadcom/compiler/nir_to_vir.c @@ -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 |