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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Qing Zhao <qinz...@gcc.gnu.org>:

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

commit r13-9072-ga344ba9e42224220a7279a4051a08662435b1c60
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Sep 18 09:52:55 2024 +0200

    tree-optimization/116585 - SSA corruption with split_constant_offset

    split_constant_offset when looking through SSA defs can end up
    picking SSA leafs that are subject to abnormal coalescing.  This
    can lead to downstream consumers to insert code based on the
    result (like from dataref analysis) in places that violate constraints
    for abnormal coalescing.  It's best to not expand defs whose operands
    are subject to abnormal coalescing - and not either do something when
    a subexpression has operands like that already.

            PR tree-optimization/116585
            * tree-data-ref.cc (split_constant_offset_1): When either
            operand is subject to abnormal coalescing do no further
            processing.

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

    (cherry picked from commit 1d0cb3b5fca69b81e69cfdb4aea0eebc1ac04750)

Reply via email to