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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

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

commit r13-1467-gb55284f4a1235fccd8254f539ddc6b869580462b
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Jul 4 15:03:33 2022 +0200

    tree-optimization/106182 - LC SSA after CFG cleanup

    The testcase shows that when cleaning up the CFG we can end up
    with broken LC SSA (for virtual operands with the testcase).  The
    case here involves deleting a loop after which it is not enough
    to scan the blocks with changed loop depth for SSA uses that need
    to be rewritten.  So make fix_loop_sturcture return the sum of
    the number of new loops and the number of deleted loops.

            PR tree-optimization/106182
            * loop-init.cc (fix_loop_structure): Return the number
            of newly discovered plus the number of deleted loops.
            * tree-cfgcleanup.cc (repair_loop_structures): Adjust
            variable name.

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

Reply via email to