On 7/24/2021 3:44 AM, Roger Sayle wrote:
My apologies for the short delay.  Thanks for explaining why these
transforms
don't usually require explicit tests for side-effects (but occasionally do).
This does simplify things; please find attached the shorter revised patch.

This patch has been retested on x86_64-pc-linux-gnu with a make bootstrap
and make -k check with no new failures.  Ok for mainline?

2010-07-24  Roger Sayle  <ro...@nextmovesoftware.com>
            Marc Glisse  <marc.gli...@inria.fr>

gcc/ChangeLog
        * match.pd (rotate): Simplify equality/inequality of rotations.
        (bswap): Simplify equality/inequality tests of byte swapping.

gcc/testsuite/ChangeLog
        * gcc.dg/fold-eqrotate-1.c: New test case.
        * gcc.dg/fold-eqbswap-1.c: New test case.
OK.  Thanks!

jeff

Reply via email to