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

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

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

commit r12-656-ga564da506f52be66ade298b562417641e87b549f
Author: Richard Biener <rguent...@suse.de>
Date:   Wed May 5 16:15:12 2021 +0200

    tree-optimization/100434 - DSE aggregate call LHS

    This makes DSE consider aggregate LHS of calls as dead, for pure
    or const calls the whole stmt and for others by removing the LHS.

    2021-05-05  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/100434
            * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
            call LHS.
            (dse_optimize_stmt): Handle call LHS by dropping the
            LHS or the whole call if it doesn't have other
            side-effects.
            (pass_dse::execute): Adjust.

            * gcc.dg/tree-ssa/ssa-dse-43.c: New testcase.

Reply via email to