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

--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

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

commit r16-3993-gf2818238a53f518bb1be178acf388d978443c1e2
Author: Andrew Pinski <andrew.pin...@oss.qualcomm.com>
Date:   Tue Sep 16 15:42:54 2025 -0700

    forwprop: Don't loop on the stmt when optimize_aggr_zeroprop or
optimize_agr_copyprop return true

    Since now optimize_aggr_zeroprop and optimize_agr_copyprop work by forward
walk to prop
    the zero/aggregate and does not change the statement at hand, there is no
reason to
    repeat the loop if they do anything.  This will prevent problems like PR
121962 from
    happening again as we will never loop.

    Bootstrapped and tested on x86_64-linux-gnu.

    gcc/ChangeLog:

            * tree-ssa-forwprop.cc (optimize_aggr_zeroprop_1): Change return
type
            to void.
            (optimize_aggr_zeroprop): Likewise.
            (optimize_agr_copyprop_1): Likewise.
            (optimize_agr_copyprop_arg): Likewise.
            (optimize_agr_copyprop): Likewise.
            (simplify_builtin_call): Handle update of the return type
            of optimize_aggr_zeroprop.
            (pass_forwprop::execute): Likewise and optimize_agr_copyprop.

    Signed-off-by: Andrew Pinski <andrew.pin...@oss.qualcomm.com>

Reply via email to