This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] simplify-rtx: simplify_logical_relational_operation
On 11/6/19 8:00 AM, Segher Boessenkool wrote:
> This introduces simplify_logical_relational_operation. Currently the
> only thing implemented it can simplify is the IOR of two CONDs of the
> same arguments.
>
> Tested on powerpc64-linux {-m32,-m64}.
>
> Is this okay for trunk?
>
>
> Segher
>
>
> 2018-11-06 Segher Boessenkool <segher@kernel.crashing.org>
>
> * simplify-rtx.c (comparison_to_mask): New function.
> (mask_to_comparison): New function.
> (simplify_logical_relational_operation): New function.
> (simplify_binary_operation_1): Call
> simplify_logical_relational_operation.
OK.
BTW, I think there's enough overlap between simplify-rtx and combine
that if you wanted to maintain simplify-rtx as well that I'd fully
support it. Thoughts?
jeff