https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88751
--- Comment #8 from Andreas Krebbel <krebbel at gcc dot gnu.org> --- Author: krebbel Date: Fri Sep 20 09:23:50 2019 New Revision: 275993 URL: https://gcc.gnu.org/viewcvs?rev=275993&root=gcc&view=rev Log: Fix PR88751 This patch implements a small improvement for the heuristic in lra which decides when it has to activate the simpler register allocation algorithm. gcc/ChangeLog: 2019-09-20 Andreas Krebbel <kreb...@linux.ibm.com> Backport from mainline 2019-06-06 Andreas Krebbel <kreb...@linux.ibm.com> PR rtl-optimization/88751 * ira.c (ira): Use the number of the actually referenced registers when calculating the threshold. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/ira.c