public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* patch for update_flow_info REG_WAS_0
@ 1998-02-12 18:02 Joern Rennecke
  1998-02-13  2:04 ` Jeffrey A Law
  0 siblings, 1 reply; 4+ messages in thread
From: Joern Rennecke @ 1998-02-12 18:02 UTC (permalink / raw)
  To: law, wilson; +Cc: egcs

update_flow_info tried in vain to find the new setter for a (mem:DI ...
value after this was split into two memory accesses...

Fri Feb 13 00:25:02 1998  J"orn Rennecke <amylaar@cygnus.co.uk>

	* sched.c (update_flow_info, REG_WAS_0): Ignore if setting insn
	was deleted.

Index: sched.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/sched.c,v
retrieving revision 1.120
diff -p -r1.120 sched.c
*** sched.c	1998/02/06 08:35:42	1.120
--- sched.c	1998/02/13 00:28:12
***************
*** 1,5 ****
  /* Instruction scheduling pass.
!    Copyright (C) 1992, 93-96, 1997 Free Software Foundation, Inc.
     Contributed by Michael Tiemann (tiemann@cygnus.com)
     Enhanced by, and currently maintained by, Jim Wilson (wilson@cygnus.com)
  
--- 1,5 ----
  /* Instruction scheduling pass.
!    Copyright (C) 1992, 93-97, 1998 Free Software Foundation, Inc.
     Contributed by Michael Tiemann (tiemann@cygnus.com)
     Enhanced by, and currently maintained by, Jim Wilson (wilson@cygnus.com)
  
*************** update_flow_info (notes, first, last, or
*** 3854,3859 ****
--- 3854,3867 ----
  	  break;
  
  	case REG_WAS_0:
+ 	  /* If the insn that set the register to 0 was deleted, this
+ 	     note cannot be relied on any longer.  The destination might
+ 	     even have been moved to memory.
+              This was observed for SH4 with execute/920501-6.c compilation,
+ 	     -O2 -fomit-frame-pointer -finline-functions .  */
+ 	  if (GET_CODE (XEXP (note, 0)) == NOTE
+ 	      || INSN_DELETED_P (XEXP (note, 0)))
+ 	    break;
  	  /* This note applies to the dest of the original insn.  Find the
  	     first new insn that now has the same dest, and move the note
  	     there.  */

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

end of thread, other threads:[~1998-02-13 10:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-12 18:02 patch for update_flow_info REG_WAS_0 Joern Rennecke
1998-02-13  2:04 ` Jeffrey A Law
1998-02-13  2:16   ` Joern Rennecke
1998-02-13 10:31     ` 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).