From 2bd0343ba073cc89351ccc6cf19db8b720c2306e Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Wed, 22 Feb 2023 11:33:06 -0800 Subject: [PATCH] glsl/opt_algebraic: Drop ~~x == x transformation. No change on freedreno shader-db. Part-of: --- src/compiler/glsl/opt_algebraic.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/compiler/glsl/opt_algebraic.cpp b/src/compiler/glsl/opt_algebraic.cpp index 8c3387c57fe..21f1409e28d 100644 --- a/src/compiler/glsl/opt_algebraic.cpp +++ b/src/compiler/glsl/opt_algebraic.cpp @@ -305,11 +305,6 @@ ir_algebraic_visitor::handle_expression(ir_expression *ir) this->mem_ctx = ralloc_parent(ir); switch (ir->operation) { - case ir_unop_bit_not: - if (op_expr[0] && op_expr[0]->operation == ir_unop_bit_not) - return op_expr[0]->operands[0]; - break; - case ir_unop_abs: if (op_expr[0] == NULL) break;