[Bug tree-optimization/95295] g++ produces incorrect code with -O3 for loops

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 27 12:57:17 GMT 2020


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

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

https://gcc.gnu.org/g:6c8e16aea85286721eb5689f9bcae09d36003cb1

commit r11-660-g6c8e16aea85286721eb5689f9bcae09d36003cb1
Author: Richard Biener <rguenther@suse.de>
Date:   Wed May 27 13:05:07 2020 +0200

    tree-optimization/95295 - fix sinking after path merging in new SM code

    This fixes a missed sinking of remat stores across unrelated stores
    after merging from different paths.

    2020-05-27  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/95295
            * tree-ssa-loop-im.c (sm_seq_valid_bb): Fix sinking after
            merging stores from paths.

            * gcc.dg/torture/pr95295-3.c: New testcase.


More information about the Gcc-bugs mailing list