Re: [PATCH v2] simplify-rtx: Combine bitwise operations in more cases

2025-04-29 Thread Richard Sandiford
Pengfei Li writes: > This patch transforms RTL expressions of the form (subreg (not X)) into > (not (subreg X)) if the subreg is an operand of another binary logical > operation. This transformation can expose opportunities to combine more > logical operations. > > For example, it improves the cod

[PATCH v2] simplify-rtx: Combine bitwise operations in more cases

2025-04-28 Thread Pengfei Li
This patch transforms RTL expressions of the form (subreg (not X)) into (not (subreg X)) if the subreg is an operand of another binary logical operation. This transformation can expose opportunities to combine more logical operations. For example, it improves the codegen of the following AArch64 N