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

--- Comment #2 from GCC 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:0c2ea80a4ffbddc0bc29f5badaf2ae43e59483b2

commit r14-6120-g0c2ea80a4ffbddc0bc29f5badaf2ae43e59483b2
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Dec 4 14:50:59 2023 +0100

    middle-end/112785 - guard against last_clique overflow

    The PR shows that we'll ICE eventually when last_clique wraps.  The
    following avoids this by refusing to hand out new cliques after
    exhausting them.  We then use zero (no clique) as conservative
    fallback.

            PR middle-end/112785
            * function.h (get_new_clique): New inline function handling
            last_clique overflow.
            * cfgrtl.cc (duplicate_insn_chain): Use it.
            * tree-cfg.cc (gimple_duplicate_bb): Likewise.
            * tree-inline.cc (remap_dependence_clique): Likewise.

Reply via email to