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]

Re: RFA: patch cheking dangerous insns in sched-ebb.c


Richard Henderson wrote:
> 
> On Tue, Feb 25, 2003 at 03:45:37PM -0500, Vladimir Makarov wrote:
> > +             bb = earliest_block_with_similiar_load (last_block, insn);
> > +             if (bb)
> > +               bb = bb->aux;
> > +             if (!bb)
> > +               break;
> 
> This break is still wrong, as I discussed in detail.

Sorry, I've fixed that.

Vlad
Index: sched-ebb.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sched-ebb.c,v
retrieving revision 1.24
diff -c -p -r1.24 sched-ebb.c
*** sched-ebb.c	25 Feb 2003 20:40:57 -0000	1.24
--- sched-ebb.c	25 Feb 2003 21:40:21 -0000
*************** add_deps_for_risky_insns (head, tail)
*** 442,451 ****
  	      {
  		bb = earliest_block_with_similiar_load (last_block, insn);
  		if (bb)
! 		  bb = bb->aux;
! 		if (!bb)
! 		  break;
! 		prev = bb->end;
  	      }
  	    /* FALLTHRU */
  	  case TRAP_RISKY:
--- 442,453 ----
  	      {
  		bb = earliest_block_with_similiar_load (last_block, insn);
  		if (bb)
! 		  {
! 		    bb = bb->aux;
! 		    if (!bb)
! 		      break;
! 		    prev = bb->end;
! 		  }
  	      }
  	    /* FALLTHRU */
  	  case TRAP_RISKY:

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