From ed138f2861a6cbc39085e0b506c90d35a3b3175b Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 17 Jan 2020 13:33:20 -0800 Subject: [PATCH] nir/algebraic: Partially revert 3f782cdd2591 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm not sure what the logic was, but there is no opportunity for anything to flush to zero here. 'a' is a Boolean value, and b2f produces 1.0 or 0.0. This was originally part of https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3765/. Reviewed-by: Matt Turner Cc: Andres Gomez Cc: Samuel Iglesias Gonsálvez Cc: Connor Abbott Part-of: --- src/compiler/nir/nir_opt_algebraic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index 8eec5608e91..c719cd096f8 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -466,7 +466,7 @@ optimizations.extend([ (('ine', ('iadd', a, b), a), ('ine', b, 0)), (('feq', ('b2f', 'a@1'), 0.0), ('inot', a)), - (('~fneu', ('b2f', 'a@1'), 0.0), a), + (('fneu', ('b2f', 'a@1'), 0.0), a), (('ieq', ('b2i', 'a@1'), 0), ('inot', a)), (('ine', ('b2i', 'a@1'), 0), a),