https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103437
--- Comment #6 from CVS 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:d47393d0b4d0d498795c4ae1353e6c156c1c4500 commit r12-5714-gd47393d0b4d0d498795c4ae1353e6c156c1c4500 Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Thu Dec 2 08:29:45 2021 -0500 [PR103437] Process multiplication overflow in priority calculation for allocno assignments We process overflows in cost calculations but for huge functions priority calculation can overflow as priority can be bigger the cost used for it. The patch fixes the problem. gcc/ChangeLog: PR rtl-optimization/103437 * ira-color.c (setup_allocno_priorities): Process multiplication overflow.