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 <[email protected]>:

https://gcc.gnu.org/g:18d08c0e6115e6c34eaed73f242ccf210a455240

commit r17-551-g18d08c0e6115e6c34eaed73f242ccf210a455240
Author: Jakub Jelinek <[email protected]>
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  <[email protected]>

            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 <[email protected]>

Reply via email to