nir: Add some range analysis for used bits
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 4 Feb 2021 17:38:40 +0000 (11:38 -0600)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Feb 2021 16:36:31 +0000 (16:36 +0000)
commit96303a59eaeb2a38ab04330fb6ad9bc75f9d7b36
treee2ddf6d35ffdc61563f569a67f1d4281216a0b08
parentd670afa27a42bd86730815e8246110292de95cc1
nir: Add some range analysis for used bits

This isn't 100% accurate, of course, but it should be good enough for
what we're about to do with it.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8872>
src/compiler/nir/nir_range_analysis.c
src/compiler/nir/nir_range_analysis.h