From 9c59f9f3793bf06f2415cc925ce048fe6ab593ad Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 26 Feb 2020 13:51:07 -0500 Subject: [PATCH] pan/midgard: Allow fusing inverted sources for inverted ops It doesn't make a difference to the actual algorithm, so let's get rid of them. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_opt_invert.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_opt_invert.c b/src/panfrost/midgard/midgard_opt_invert.c index b0ca4bd257f..add8db0e2f2 100644 --- a/src/panfrost/midgard/midgard_opt_invert.c +++ b/src/panfrost/midgard/midgard_opt_invert.c @@ -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; -- 2.30.2