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

--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

https://gcc.gnu.org/g:9f27ac9b83af5e01098481d4a776fabb53f63618

commit r16-6069-g9f27ac9b83af5e01098481d4a776fabb53f63618
Author: Andrew Pinski <[email protected]>
Date:   Mon Dec 8 22:53:06 2025 -0800

    cfg: Fix count when creating new forwarder block

    This was a bug previously but maybe did't matter as most of
    the time the block was going to be removed after cddce.
    Anyways the problem here is the count of the new bb was missing
    of the first edge that was moved to it. So the fix is reuse the count
    after the splitting of the edge as the initial value instead of 0.

    This does not fix gcc.target/i386/pr90178.c with -m32, but at least
    we don't get any more warning saying the incorrect count happening.

    Bootstrapped and tested on x86_64-linux-gnu.

    gcc/ChangeLog:

            PR tree-optimization/103680
            * tree-cfg.cc (make_forwarders_with_degenerate_phis): Fix
            initial value of the count to new bb.

    Signed-off-by: Andrew Pinski <[email protected]>

Reply via email to