This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]