[Bug middle-end/50481] builtin to reverse the bit order
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat May 16 08:52:43 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50481
--- Comment #24 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:18d08c0e6115e6c34eaed73f242ccf210a455240
commit r17-551-g18d08c0e6115e6c34eaed73f242ccf210a455240
Author: Jakub Jelinek <jakub@redhat.com>
Date: Sat May 16 10:51:39 2026 +0200
match.pd: Enable some __builtin_bswap* optimizations even for
__builtin_bitreverse* [PR50481]
Most of the bswap optimizations equally apply also to bitreverse builtins.
The following patch enables those.
2026-05-16 Jakub Jelinek <jakub@redhat.com>
PR target/50481
* match.pd (BITREVERSE): New define_operator_list. Use it next to
BSWAP for a subset of bswap simplifications.
* gcc.dg/builtin-bitreverse-4.c: New test.
Reviewed-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
More information about the Gcc-bugs
mailing list