nir: do not assume that the result of fexp2(a) is always an integral
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 27 Aug 2019 09:35:00 +0000 (11:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Sep 2019 07:00:37 +0000 (09:00 +0200)
commit966a455bb912cc9fd22580c6cf9b74e27faa4491
treec0fe2ad1cb26d345a9b266bbb58ee8e836cda92f
parent6775a524004ba15ab281c1391fb24cbf621fe859
nir: do not assume that the result of fexp2(a) is always an integral

It's only correct when 'a' is an integral greater or equal to 0.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111493
Fixes: 5544b2cbbd2 ("nir/algebraic: Use value range analysis to eliminate useless unary ops")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_range_analysis.c