From 35e54abc671dc59f8e0b1126e1fd68c1823e2c4e Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 17 Aug 2020 20:22:23 +0100 Subject: [PATCH] nir/cse: resize the instruction set MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: --- src/compiler/nir/nir_opt_cse.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.7.4