This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[vta] don't count debug insns against param max-reload-search-insns
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 03 Jan 2008 03:56:59 -0200
- Subject: [vta] don't count debug insns against param max-reload-search-insns
bootstrap-debug failed on ppc64 because of a reload glitch: the
presence of debug insns prevented some previously-reloaded values from
being reused in other reloads, because this parameter was exceeded.
Ignoring debug insns when counting insns fixes it. I'm installing
this in the vta branch.
for gcc/ChangeLog.vta
from Alexandre Oliva <aoliva@redhat.com>
* reload.c (find_equiv_reg): Don't count debug insns against
max-reload-search-insns when searching back for inheritance
opportunities.
Index: gcc/reload.c
===================================================================
--- gcc/reload.c.orig 2007-11-23 18:05:52.000000000 -0200
+++ gcc/reload.c 2007-12-29 04:42:39.000000000 -0200
@@ -6642,6 +6642,8 @@ find_equiv_reg (rtx goal, rtx insn, enum
while (1)
{
p = PREV_INSN (p);
+ if (p && DEBUG_INSN_P (p))
+ continue;
num++;
if (p == 0 || LABEL_P (p)
|| num > PARAM_VALUE (PARAM_MAX_RELOAD_SEARCH_INSNS))
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}