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: [Patch SH] Use existing predicates for RTL objects


Shujing Zhao <pearly.zhao@oracle.com> wrote:
> This patch is to use existing predicates for RTL objects at config/sh 
> directory.
> Tested on sh-elf simulator.

Thanks for doing this!  Please remove the hunk

@@ -8689,7 +8687,7 @@ reg_unused_after (rtx reg, rtx insn)
 	 We could have for instance a call that sets the target register,
 	 and an insn in a delay slot that uses the register.  In this case,
 	 we must return 0.  */
-      else if (code == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE)
+      else if (code && NONJUMP_INSN_P (PATTERN (insn)) == SEQUENCE)
 	{
 	  int i;
 	  int retval = 0;

which doesn't look right.  OK with that change.

Regards,
	kaz


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