]> git.ipfire.org Git - thirdparty/gcc.git/commit
simplify-rtx: simplify_logical_relational_operation
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 7 Nov 2019 22:08:49 +0000 (23:08 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 7 Nov 2019 22:08:49 +0000 (23:08 +0100)
commitb77cc8aa094c234e62814ddcc2230874b96aabf3
tree51ef317605c4ddf6c88a3a384c2010832272f493
parent87496ad88e0fa227fcdb2cd88e3e501f96aaf2f2
simplify-rtx: simplify_logical_relational_operation

This introduces simplify_logical_relational_operation.  Currently the
only thing implemented it can simplify is the IOR of two CONDs of the
same arguments.

* 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.

From-SVN: r277931
gcc/ChangeLog
gcc/simplify-rtx.c