[Bug tree-optimization/122435] Optimization failure with trivial loop due to type changes for stores to the same address

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 27 12:22:00 GMT 2025


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

--- Comment #5 from GCC 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:ff732017653dfe283a8cda54cbea0a44cb76d314

commit r16-4649-gff732017653dfe283a8cda54cbea0a44cb76d314
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Oct 27 11:15:17 2025 +0100

    tree-optimization/122435 - missed redundant store removal

    The following removes a noop store that just performs a type sign
    change.

            PR tree-optimization/122435
            * tree-ssa-sccvn.cc (eliminate_dom_walker::eliminate_stmt):
            Also match noop conversions when detecting redundant stores.

            * gcc.dg/tree-ssa/ssa-fre-111.c: New testcase.


More information about the Gcc-bugs mailing list