From: Rhys Perry Date: Mon, 17 Aug 2020 19:22:23 +0000 (+0100) Subject: nir/cse: resize the instruction set X-Git-Tag: upstream/21.2.3~1898 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35e54abc671dc59f8e0b1126e1fd68c1823e2c4e;p=platform%2Fupstream%2Fmesa.git nir/cse: resize the instruction set ministat (CSE only): Difference at 95.0% confidence -3357.54 +/- 32.5177 -25.267% +/- 0.24098% (Student's t, pooled s = 33.909) ministat (entire run): Difference at 95.0% confidence -3414.27 +/- 270.628 -2.76477% +/- 0.217647% (Student's t, pooled s = 282.207) Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Reviewed-by: Matt Turner Part-of: --- diff --git a/src/compiler/nir/nir_opt_cse.c b/src/compiler/nir/nir_opt_cse.c index 80f4841..d60758b 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;