[Bug rtl-optimization/52802] Equality rewrites pessimizes code

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 2 18:28:29 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52802

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
          Component|target                      |rtl-optimization
   Last reconfirmed|2012-04-02 00:00:00         |2021-8-2

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We miss this also for aarch64:
        cmp     w0, 7
        bls     .L1
        cmp     w0, 8
        mov     w0, 4711
        csel    w0, w1, w0, eq
.L1:
        ret


More information about the Gcc-bugs mailing list