[Bug rtl-optimization/124649] [16 Regression] ICE during RTL cprop_hardreg since r16-446

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 27 16:36:02 GMT 2026


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

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

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

commit r16-8305-gaf787f951b882cbf3acfb41ea3531fcd3083934f
Author: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Date:   Thu Mar 26 13:21:01 2026 -0700

    regcprop: Return early in maybe_mode_change for unorder modes [PR124649]

    Like r16-727-g2ec5082dd24cef but the call to partial_subreg_p happens
    in a later place, maybe_mode_change.
    For this example we have VNx4QImode and DImode which are not ordered.

    Bootstrapped and tested on aarch64-linux-gnu.

            PR rtl-optimization/124649

    gcc/ChangeLog:

            * regcprop.cc (maybe_mode_change): Return early
            for unordered modes.

    gcc/testsuite/ChangeLog:

            * gcc.dg/torture/pr124649-1.c: New test.

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


More information about the Gcc-bugs mailing list