Commit 3ef013f0 authored by Samuel Pitoiset's avatar Samuel Pitoiset Committed by Dylan Baker
Browse files

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.

Fixes: 5544b2cb

 ("nir/algebraic: Use value range analysis to eliminate useless unary ops")
Signed-off-by: Samuel Pitoiset's avatarSamuel Pitoiset <>
Reviewed-by: default avatarIan Romanick <>
(cherry picked from commit 966a455b)
(conflicts resolved by Dylan Baker)
parent b84cbdfd
Pipeline #61244 passed with stages
in 14 minutes and 14 seconds