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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Sandiford <rsand...@gcc.gnu.org>:

https://gcc.gnu.org/g:ccb68179642cf7ba5ee05a0d8571a95d0145e3a2

commit r10-6166-gccb68179642cf7ba5ee05a0d8571a95d0145e3a2
Author: Richard Sandiford <richard.sandif...@arm.com>
Date:   Mon Jan 20 18:28:38 2020 +0000

    auto-inc-dec: Don't add incs/decs to bare CLOBBERs [PR93124]

    In this PR, auto-inc-dec was trying to turn:

        (set (reg X) (plus (reg X) (const_int N)))
        (clobber (mem (reg X)))

    into:

        (clobber (mem (pre_modify (reg X) ...)))

    But bare clobber insns are just there to describe dataflow.  They're
    not supposed to generate any code.

    2020-01-23  Richard Sandiford  <richard.sandif...@arm.com>

    gcc/
        PR rtl-optimization/93124
        * auto-inc-dec.c (merge_in_block): Don't add auto inc/decs to
        bare USE and CLOBBER insns.

    gcc/testsuite/
        * gcc.dg/torture/pr93124.c: New test.

Reply via email to