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]

Re: sh barrier_align vs. fill_eager_delay_slots


: --- 2770,2787 ----
:   	   prev = prev_real_insn (prev))
:   	{
: + 	  jump_to_next = 0;
:   	  if (GET_CODE (PATTERN (prev)) == USE
:   	      || GET_CODE (PATTERN (prev)) == CLOBBER)
:   	    continue;
:   	  if (GET_CODE (PATTERN (prev)) == SEQUENCE)
: ! 	    {
: ! 	      prev = XVECEXP (PATTERN (prev), 0, 1);
: ! 	      if (INSN_UID (prev) == INSN_UID (next)) 
: ! 		{
: ! 	  	  /* Delay slot was filled with insn at jump target.  */
: ! 		  jump_to_next = 1;

There should be a 'continue;' here to avoid a mismatch in the credit tally
before and after reorg.  Otherwise it looks OK.

: !   		}
: ! 	    }
: ! 
:   	  if (slot &&
:   	      get_attr_in_delay_slot (prev) == IN_DELAY_SLOT_YES)

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