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

--- Comment #5 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:4a87605938428f6c4c62d5b92cfc183cd2b2554e

commit r12-1952-g4a87605938428f6c4c62d5b92cfc183cd2b2554e
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Jul 1 11:16:01 2021 +0200

    tree-optimization/101278 - handle self-use in DSE analysis

    DSE store classification short-cuts the to-be classified stmt itself
    from chaining but fails to first check whether the store uses itself
    which can be the case when it is a call with the LHS also passed by
    value as argument.

    2021-07-01  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/101278
            * tree-ssa-dse.c (dse_classify_store): First check for
            uses, then ignore stmt for chaining purposes.

            * gcc.dg/torture/pr101278.c: New testcase.

Reply via email to