pan/midgard: Optimize comparisions with similar operations
authorAfonso Bordado <afonsobordado@az8.co>
Tue, 10 Dec 2019 13:18:00 +0000 (13:18 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 20 Dec 2019 22:36:06 +0000 (22:36 +0000)
commit3e1e4ad13da1581f11b833fba021aaf209c02fff
tree932fa260567dd6c3b1413f2ab18853ba78d60b33
parent8e9e94d084316e8723951bcf9595c45dfb735c2a
pan/midgard: Optimize comparisions with similar operations

Optimizes comparisions by removing the invert flag on operands
which we can prove to be equal without the invert.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3036>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3036>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/helpers.h
src/panfrost/midgard/midgard_compile.c
src/panfrost/midgard/midgard_opt_invert.c