[PATCH] middle-end: Recognize idioms for bswap32 and bswap64 in match.pd.

Jakub Jelinek jakub@redhat.com
Sat Aug 15 13:26:00 GMT 2020

On Sat, Aug 15, 2020 at 11:09:17AM +0100, Roger Sayle wrote:
> +/* Recognize ((T)bswap32(x)<<32)|bswap32(x>>32) as bswap64(x).  */
> +(simplify
> +  (bit_ior:c

Any reason for supporting bit_ior only?  Don't plus:c or bit_xor:c
work the same (i.e. use (for op (bit_ior bit_xor plus) ...)?


More information about the Gcc-patches mailing list