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

--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Richard Biener
<[email protected]>:

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

commit r14-12462-gad9734c1a2334a1dd023356725917f59a3959015
Author: Richard Biener <[email protected]>
Date:   Fri May 9 08:38:45 2025 +0200

    rtl-optimization/120182 - wrong-code with RTL DSE and constant addresses

    RTL DSE forms store groups from unique invariant bases but that is
    confused when presented with constant addresses where it assigns
    one store group per unique address.  That causes it to not consider
    0x101:QI to alias 0x100:SI.  Constant accesses can really alias
    to every object, in practice they appear for I/O and for access
    to objects fixed via linker scripts for example.  So simply avoid
    registering a store group for them.

            PR rtl-optimization/120182
            * dse.cc (canon_address): Constant addresses have no
            separate store group.

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

    (cherry picked from commit b9434c3db900d5d037fdf2f64149b82800ceadf8)

Reply via email to