pan/midgard: Allow fusing inverted sources for inverted ops
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 26 Feb 2020 18:51:07 +0000 (13:51 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Feb 2020 21:02:35 +0000 (21:02 +0000)
It doesn't make a difference to the actual algorithm, so let's get rid
of them.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3978>

src/panfrost/midgard/midgard_opt_invert.c

index b0ca4bd257f81d8ae1236243d675bc590fa019d9..add8db0e2f27a1d9fbc4bc0a79e142583e8587e1 100644 (file)
@@ -242,7 +242,6 @@ midgard_opt_fuse_src_invert(compiler_context *ctx, midgard_block *block)
                 /* Search for inverted bitwise */
                 if (ins->type != TAG_ALU_4) continue;
                 if (!mir_is_bitwise(ins)) continue;
-                if (ins->invert) continue;
 
                 if (!is_ssa_or_constant(ins->src[0])) continue;
                 if (!is_ssa_or_constant(ins->src[1])) continue;