diff options
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index b8a9e985088..793b341ea10 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -1212,8 +1212,10 @@ cleanup_cf_node(nir_cf_node *node) case nir_cf_node_block: { nir_block *block = nir_cf_node_as_block(node); /* We need to walk the instructions and clean up defs/uses */ - nir_foreach_instr(block, instr) - remove_defs_uses(instr); + nir_foreach_instr(block, instr) { + if (instr->type != nir_instr_type_jump) + nir_instr_remove(instr); + } break; } |