diff --git a/src/compiler/nir/nir_opt_cse.c b/src/compiler/nir/nir_opt_cse.c index 80f48410ad0..d60758b24fc 100644 --- a/src/compiler/nir/nir_opt_cse.c +++ b/src/compiler/nir/nir_opt_cse.c @@ -43,6 +43,8 @@ nir_opt_cse_impl(nir_function_impl *impl) { struct set *instr_set = nir_instr_set_create(NULL); + _mesa_set_resize(instr_set, impl->ssa_alloc); + nir_metadata_require(impl, nir_metadata_dominance); bool progress = false;