nir: Keep the range analysis HT around intra-pass until we make a change.
authorEric Anholt <eric@anholt.net>
Mon, 23 Sep 2019 22:40:46 +0000 (15:40 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Oct 2019 19:15:01 +0000 (19:15 +0000)
commitc23db0df1893ee755d7c4ed182ba734a019afe43
tree592cea258d9ba7363ba843d16a4310722ff78d8d
parent7025dbe794b53b030ae0a3cb55217ea831a810d9
nir: Keep the range analysis HT around intra-pass until we make a change.

This lets us memoize range analysis work across instructions.  Reduces
runtime of shader-db on Intel by -30.0288% +/- 2.1693% (n=3).

Fixes: 405de7ccb6cb ("nir/range-analysis: Rudimentary value range analysis pass")
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_algebraic.py
src/compiler/nir/nir_opt_comparison_pre.c
src/compiler/nir/nir_range_analysis.c
src/compiler/nir/nir_range_analysis.h
src/compiler/nir/nir_search.c
src/compiler/nir/nir_search.h
src/compiler/nir/nir_search_helpers.h