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

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

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

commit r17-5992-gaba5bc2ace29a112f38597a3256ec8066a464ce3
Author: Richard Biener <[email protected]>
Date:   Fri Nov 6 08:58:39 2026 +0100

    tree-optimization/128463 - store-merging vs calls

    The following fixes up alias handling in store-merging which failed
    to disregard TBAA when disambiguating against calls.  Instead of the
    attempt to fix that up with the explicit store handling simply
    ensure stmt_may_clobber_ref_p_1 doesn't use TBAA as we're sinking
    loads or stores across stores.

            PR tree-optimization/128463
            * gimple-ssa-store-merging.cc
            (pass_store_merging::terminate_all_aliasing_chains): Simplify.
            Do not use TBAA when checking whether a stmt may clobber ref.
            (stmts_may_clobber_ref_p): Likewise.

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

Reply via email to