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

--- Comment #7 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:0424a5ece5307cc22bbc0fe97edf4707d7a798ed

commit r11-67-g0424a5ece5307cc22bbc0fe97edf4707d7a798ed
Author: Richard Biener <rguent...@suse.de>
Date:   Tue May 5 11:00:09 2020 +0200

    tree-optimization/94949 - fix load eliding in SM

    This fixes the case of not using the multithreaded model when
    only conditionally storing to the destination.  We cannot elide
    the load in this case.

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

            PR tree-optimization/94949
            * tree-ssa-loop-im.c (execute_sm): Check whether we use
            the multithreaded model or always compute the stored value
            before eliding a load.

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

Reply via email to