diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2020-06-29 17:33:23 +0100 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:15:25 -0300 |
commit | 2b72c738b16112ce13ce7bf6e0cafd308f0f812c (patch) | |
tree | f3d4392aec1f7d652c2962888cffcd6f1c78f970 /gcc/fortran/expr.c | |
parent | 4b341beec6d47bed0e1fa6030c0c0718f5f6bdcf (diff) | |
download | gcc-2b72c738b16112ce13ce7bf6e0cafd308f0f812c.zip gcc-2b72c738b16112ce13ce7bf6e0cafd308f0f812c.tar.gz gcc-2b72c738b16112ce13ce7bf6e0cafd308f0f812c.tar.bz2 |
middle-end: Optimize (A&C)^(B&C) to (A^B)&C in simplify_rtx (take 3).
2020-06-29 Roger Sayle <roger@nextmovesoftware.com>
gcc/ChangeLog:
* simplify-rtx.c (simplify_distributive_operation): New function
to un-distribute a binary operation of two binary operations.
(X & C) ^ (Y & C) to (X ^ Y) & C, when C is simple (i.e. a constant).
(simplify_binary_operation_1) <IOR, XOR, AND>: Call it from here
when appropriate.
(test_scalar_int_ops): New function for unit self-testing
scalar integer transformations in simplify-rtx.c.
(test_scalar_ops): Call test_scalar_int_ops for each integer mode.
(simplify_rtx_c_tests): Call test_scalar_ops.
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions