summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_range_analysis.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2019-09-23 15:40:46 -0700
committerEric Anholt <eric@anholt.net>2019-10-04 19:15:01 +0000
commitc23db0df1893ee755d7c4ed182ba734a019afe43 (patch)
tree592cea258d9ba7363ba843d16a4310722ff78d8d /src/compiler/nir/nir_range_analysis.h
parent7025dbe794b53b030ae0a3cb55217ea831a810d9 (diff)
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>
Diffstat (limited to 'src/compiler/nir/nir_range_analysis.h')
-rw-r--r--src/compiler/nir/nir_range_analysis.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_range_analysis.h b/src/compiler/nir/nir_range_analysis.h
index 240ae74cf6c..f5d12bfbf9f 100644
--- a/src/compiler/nir/nir_range_analysis.h
+++ b/src/compiler/nir/nir_range_analysis.h
@@ -42,6 +42,7 @@ struct ssa_result_range {
};
extern struct ssa_result_range
-nir_analyze_range(const nir_alu_instr *instr, unsigned src);
+nir_analyze_range(struct hash_table *range_ht,
+ const nir_alu_instr *instr, unsigned src);
#endif /* _NIR_RANGE_ANALYSIS_H_ */