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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Vladimir Makarov <vmaka...@gcc.gnu.org>:

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

commit r15-7008-g9f009e8865cda01310c52f7ec8bdaa3c557a2745
Author: Vladimir N. Makarov <vmaka...@redhat.com>
Date:   Fri Jan 17 15:56:29 2025 -0500

    [PR118067][LRA]: Check secondary memory mode for the reg class

      This is the second patch for the PR for the new test.  The patch
    solves problem in the case when secondary memory mode (SImode in the
    PR test) returned by hook secondary_memory_needed_mode can not be used
    for reg class (ALL_MASK_REGS) involved in secondary memory moves.  The
    patch uses reg mode instead of one returned by
    secondary_memory_needed_mode in this case.

    gcc/ChangeLog:

            PR rtl-optimization/118067
            * lra-constraints.cc (invalid_mode_reg_p): New function.
            (curr_insn_transform): Use it to check mode returned by target
            secondary_memory_needed_mode.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr118067-2.c: New.

Reply via email to