Mesa (main): nir/cse: resize the instruction set

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 15 18:19:50 UTC 2021


Module: Mesa
Branch: main
Commit: 35e54abc671dc59f8e0b1126e1fd68c1823e2c4e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=35e54abc671dc59f8e0b1126e1fd68c1823e2c4e

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Mon Aug 17 20:22:23 2020 +0100

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 <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6390>

---

 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 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;



More information about the mesa-commit mailing list