public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* shorten_branches: handling of deleted insns.
@ 1997-09-04  0:15 Joern Rennecke
  1997-09-04  8:48 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Joern Rennecke @ 1997-09-04  0:15 UTC (permalink / raw)
  To: Richard Kenner; +Cc: egcs

When there has been no scheduling pass, shorten_branches does instruction
splitting of its own.  However, try_split doesn't remove the splitted insn
from the insn chain, nor does it turn it into a note; it only sets
INSN_DELETED_P for the instruction.  However, these 'deleted' instructions
are still included in the instruction length tally of shorten_branches.

Here is a fix:

Thu Sep  4 07:39:19 1997  J"orn Rennecke <amylaar@cygnus.co.uk>

	* final.c (shorten_branches): Don't count the lengths of deleted
	instructions.

*** final.c-970902	Thu Sep  4 07:19:53 1997
--- final.c	Thu Sep  4 07:39:19 1997
*************** shorten_branches (first)
*** 738,743 ****
--- 738,745 ----
        if (GET_CODE (insn) == NOTE || GET_CODE (insn) == BARRIER
  	  || GET_CODE (insn) == CODE_LABEL)
  	continue;
+       if (INSN_DELETED_P (insn))
+ 	continue;
  
        body = PATTERN (insn);
        if (GET_CODE (body) == ADDR_VEC || GET_CODE (body) == ADDR_DIFF_VEC)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: shorten_branches: handling of deleted insns.
  1997-09-04  0:15 shorten_branches: handling of deleted insns Joern Rennecke
@ 1997-09-04  8:48 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1997-09-04  8:48 UTC (permalink / raw)
  To: Joern Rennecke; +Cc: Richard Kenner, egcs

  In message < 199709040712.IAA09231@phal.cygnus.co.uk >you write:
  > Thu Sep  4 07:39:19 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
  > 
  > 	* final.c (shorten_branches): Don't count the lengths of deleted
  > 	instructions.
Thanks.  I've installed this into egcs.
jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-04  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-04  0:15 shorten_branches: handling of deleted insns Joern Rennecke
1997-09-04  8:48 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).