https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112918
--- Comment #13 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:989e67f827b74b76e58abe137ce12d948af2290c commit r14-6667-g989e67f827b74b76e58abe137ce12d948af2290c Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Mon Dec 18 17:12:23 2023 -0500 [PR112918][LRA]: Fixing IRA ICE on m68k Some GCC tests on m68K port of LRA is failed on `maximum number of generated reload insns per insn achieved`. The problem is in that for subreg reload LRA can not narrow reg class more from ALL_REGS to GENERAL_REGS and then to data regs or address regs. The patch permits narowing reg class from reload insns if this results in succesful matching of reg operand. gcc/ChangeLog: PR rtl-optimization/112918 * lra-constraints.cc (SMALL_REGISTER_CLASS_P): Move before in_class_p. (in_class_p): Restrict condition for narrowing class in case of allow_all_reload_class_changes_p. (process_alt_operands): Pass true for allow_all_reload_class_changes_p in calls of in_class_p. (curr_insn_transform): Ditto for reg operand win.