Mesa (master): nir/algebraic: mark a few comparison simplifications as precise

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 19 16:47:04 UTC 2019


Module: Mesa
Branch: master
Commit: e8644122ed6c30b0ee353d76bdaed52bdf2c4f56
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8644122ed6c30b0ee353d76bdaed52bdf2c4f56

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Mon Jul  1 15:49:40 2019 +0100

nir/algebraic: mark a few comparison simplifications as precise

No vkpipeline-db changes found.

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reveiewed-by: Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>

---

 src/compiler/nir/nir_opt_algebraic.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py
index 4c1d547d3a1..3ffa061c01e 100644
--- a/src/compiler/nir/nir_opt_algebraic.py
+++ b/src/compiler/nir/nir_opt_algebraic.py
@@ -209,8 +209,8 @@ optimizations = [
    # Comparison simplifications
    (('~inot', ('flt', a, b)), ('fge', a, b)),
    (('~inot', ('fge', a, b)), ('flt', a, b)),
-   (('~inot', ('feq', a, b)), ('fne', a, b)),
-   (('~inot', ('fne', a, b)), ('feq', a, b)),
+   (('inot', ('feq', a, b)), ('fne', a, b)),
+   (('inot', ('fne', a, b)), ('feq', a, b)),
    (('inot', ('ilt', a, b)), ('ige', a, b)),
    (('inot', ('ult', a, b)), ('uge', a, b)),
    (('inot', ('ige', a, b)), ('ilt', a, b)),




More information about the mesa-commit mailing list