https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107482
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Max Filippov <jcmvb...@gcc.gnu.org>: https://gcc.gnu.org/g:1fb5287dfcf3bef8adea98a4bded441c95e43914 commit r12-8947-g1fb5287dfcf3bef8adea98a4bded441c95e43914 Author: Max Filippov <jcmvb...@gmail.com> Date: Mon Nov 7 13:58:49 2022 -0800 gcc: fix PR rtl-optimization/107482 gcc/ PR rtl-optimization/107482 * ira-color.cc (assign_hard_reg): Only call update_costs_from_copies when retry_p is false. (cherry picked from commit e581490f0cfa80c58d2b648d71a44a597fbe3008)