nir/range-analysis: Range tracking for bcsel
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 24 Jan 2018 12:23:15 +0000 (20:23 +0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Aug 2019 03:14:13 +0000 (20:14 -0700)
commit586602c5d90a57717df9cf94ada3d66432ee4893
tree64d15d40918c8e1ece9e915d64ff0c1f8601e668
parent3009cbed5053150fbee351ee7b9f61d3aaf6794b
nir/range-analysis: Range tracking for bcsel

This could be squashed with the previous commit.  I kept it separate to
ease review.

v2: Add some missing cases.  Use nir_src_is_const helper.  Both
suggested by Caio.  Use a table for mapping source ranges to a result
range.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_range_analysis.c