Commit 1a05afe9 authored by Jesse Natalie's avatar Jesse Natalie Committed by Erik Faye-Lund
Browse files

microsoft/clc: Remove dead code from lowering passes

parent 6a601c1f
......@@ -842,7 +842,7 @@ clc_lower_constant_to_ssbo(nir_shader *nir,
nir_builder_init(&b, func->impl);
nir_foreach_block(block, func->impl) {
nir_foreach_instr_safe(instr, block) {
nir_foreach_instr(instr, block) {
if (instr->type != nir_instr_type_deref)
continue;
......@@ -866,11 +866,8 @@ clc_lower_global_to_ssbo(nir_shader *nir)
assert(func->impl);
nir_builder b;
nir_builder_init(&b, func->impl);
nir_foreach_block(block, func->impl) {
nir_foreach_instr_safe(instr, block) {
nir_foreach_instr(instr, block) {
if (instr->type != nir_instr_type_deref)
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment