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

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

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

commit r13-9314-ga1bdcba603d79b4c20acd668ce056a586c4ab77a
Author: Richard Biener <rguent...@suse.de>
Date:   Sun Oct 13 15:12:44 2024 +0200

    tree-optimization/116290 - fix compare-debug issue in ldist

    Loop distribution does different analysis with -g0/-g due to counting
    a debug stmt starting a BB against a limit which will everntually
    lead to different IVOPTs choices.  I've fixed a possible IVOPTs
    issue on the way even though it doesn't make a difference here.

            PR tree-optimization/116290
            * tree-loop-distribution.cc (determine_reduction_stmt_1): PHIs
            have no debug variants.  Start with first non-debug real stmt.
            * tree-ssa-loop-ivopts.cc (find_givs_in_bb): Do not analyze
            debug stmts.

            * gcc.dg/pr116290.c: New testcase.

    (cherry picked from commit 566740013b3445162b8c4bc2205e4e568d014968)

Reply via email to