From 14a9bb04e4a27c881d62d28be1ffd48516aac976 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 14 Jul 2021 19:48:11 -0700 Subject: [PATCH] nir/algebraic: Remove redundant i2b(-x) pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The exact same pattern appears later (around line 1323). No shader-db or fossil-db changes on any Intel platform. Reviewed-by: Alyssa Rosenzweig Reviewed-by: Jason Ekstrand Acked-by: Jesse Natalie Tested-by: Daniel Schürmann Part-of: --- src/compiler/nir/nir_opt_algebraic.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index 1f9b0915078..64d87176b57 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -136,7 +136,6 @@ optimizations = [ (('iabs', ('iabs', a)), ('iabs', a)), (('iabs', ('ineg', a)), ('iabs', a)), (('f2b', ('fneg', a)), ('f2b', a)), - (('i2b', ('ineg', a)), ('i2b', a)), (('~fadd', a, 0.0), a), # a+0.0 is 'a' unless 'a' is denormal or -0.0. If it's only used by a # floating point instruction, they should flush any input denormals and we