nir/range-analysis: Tighten the range of fsat based on the range of its source
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 2 Jun 2018 01:54:49 +0000 (18:54 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Aug 2019 03:14:13 +0000 (20:14 -0700)
commit3009cbed5053150fbee351ee7b9f61d3aaf6794b
tree277a1f061cb0518cff618a12c80d89c97e9e5810
parent405de7ccb6cb0b2e38a861e9ddbb535598718734
nir/range-analysis: Tighten the range of fsat based on the range of its source

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

v2: Use a switch statement and add more comments.  Both suggested by
Caio.

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