diff --git a/src/amd/vulkan/nir/radv_nir_lower_poly_line_smooth.c b/src/amd/vulkan/nir/radv_nir_lower_poly_line_smooth.c index 48ebaa6b9db..f75a9611cca 100644 --- a/src/amd/vulkan/nir/radv_nir_lower_poly_line_smooth.c +++ b/src/amd/vulkan/nir/radv_nir_lower_poly_line_smooth.c @@ -34,8 +34,6 @@ radv_should_lower_poly_line_smooth(nir_shader *nir, const struct radv_pipeline_k if (!key->ps.line_smooth_enabled && !key->dynamic_line_rast_mode) return false; - nir_builder b = nir_builder_create(impl); - nir_foreach_block (block, impl) { nir_foreach_instr (instr, block) { if (instr->type != nir_instr_type_intrinsic) diff --git a/src/compiler/nir/nir_lower_mediump.c b/src/compiler/nir/nir_lower_mediump.c index 692d5310309..b1c6df228cd 100644 --- a/src/compiler/nir/nir_lower_mediump.c +++ b/src/compiler/nir/nir_lower_mediump.c @@ -286,8 +286,6 @@ nir_force_mediump_io(nir_shader *nir, nir_variable_mode modes, nir_function_impl *impl = nir_shader_get_entrypoint(nir); assert(impl); - nir_builder b = nir_builder_create(impl); - nir_foreach_block_safe (block, impl) { nir_foreach_instr_safe (instr, block) { nir_variable_mode mode; diff --git a/src/compiler/nir/nir_lower_shader_calls.c b/src/compiler/nir/nir_lower_shader_calls.c index 762db4be44b..cf276114b84 100644 --- a/src/compiler/nir/nir_lower_shader_calls.c +++ b/src/compiler/nir/nir_lower_shader_calls.c @@ -1970,8 +1970,6 @@ nir_lower_shader_calls(nir_shader *shader, { nir_function_impl *impl = nir_shader_get_entrypoint(shader); - nir_builder b = nir_builder_create(impl); - int num_calls = 0; nir_foreach_block(block, impl) { nir_foreach_instr_safe(instr, block) { diff --git a/src/gallium/drivers/r600/sfn/sfn_nir_lower_64bit.cpp b/src/gallium/drivers/r600/sfn/sfn_nir_lower_64bit.cpp index 1b581010e1f..bbaa68d9e0d 100644 --- a/src/gallium/drivers/r600/sfn/sfn_nir_lower_64bit.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_nir_lower_64bit.cpp @@ -1067,8 +1067,6 @@ r600_nir_64_to_vec2(nir_shader *sh) nir_foreach_function(function, sh) { if (function->impl) { - nir_builder b = nir_builder_create(function->impl); - nir_foreach_block(block, function->impl) { nir_foreach_instr_safe(instr, block) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 99427650603..ad5990ceb63 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1539,8 +1539,6 @@ static bool si_nir_kill_outputs(nir_shader *nir, const union si_shader_key *key) bool progress = false; - nir_builder b = nir_builder_create(impl); - nir_foreach_block(block, impl) { nir_foreach_instr_safe(instr, block) { if (instr->type != nir_instr_type_intrinsic) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index 638f93a27d2..5ded6a7bc28 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -380,7 +380,6 @@ static bool lower_gl_point_gs(nir_shader *shader) { struct lower_gl_point_state state; - nir_builder b; shader->info.gs.output_primitive = MESA_PRIM_TRIANGLE_STRIP; shader->info.gs.vertices_out *= 4; @@ -397,10 +396,6 @@ lower_gl_point_gs(nir_shader *shader) if (!state.gl_pos_out || !state.gl_point_size) return false; - nir_function_impl *entry = nir_shader_get_entrypoint(shader); - b = nir_builder_create(entry); - b.cursor = nir_before_cf_list(&entry->body); - return nir_shader_instructions_pass(shader, lower_gl_point_gs_instr, nir_metadata_dominance, &state); } diff --git a/src/microsoft/clc/clc_compiler.c b/src/microsoft/clc/clc_compiler.c index 6801724da29..d40e9a63b3d 100644 --- a/src/microsoft/clc/clc_compiler.c +++ b/src/microsoft/clc/clc_compiler.c @@ -456,8 +456,6 @@ clc_lower_constant_to_ssbo(nir_shader *nir, assert(func->impl); - nir_builder b = nir_builder_create(func->impl); - nir_foreach_block(block, func->impl) { nir_foreach_instr(instr, block) { if (instr->type != nir_instr_type_deref) diff --git a/src/panfrost/midgard/nir_fuse_io_16.c b/src/panfrost/midgard/nir_fuse_io_16.c index 37eb51ce77d..28f1fcf44c4 100644 --- a/src/panfrost/midgard/nir_fuse_io_16.c +++ b/src/panfrost/midgard/nir_fuse_io_16.c @@ -53,8 +53,6 @@ nir_fuse_io_16(nir_shader *shader) if (!function->impl) continue; - nir_builder b = nir_builder_create(function->impl); - nir_foreach_block(block, function->impl) { nir_foreach_instr_safe(instr, block) { if (instr->type != nir_instr_type_intrinsic)