diff mbox

[SH] Remove dead tertiary_reload_operand function

Message ID 1330632394.2929.182.camel@yam-132-YW-E178-FTW
State New
Headers show

Commit Message

Oleg Endo March 1, 2012, 8:06 p.m. UTC
Hello,

The function tertiary_reload_operand in sh.c seems to be dead code.  The
attached patch deletes it.

Tested with: make all-gcc

OK to apply?

Cheers,
Oleg

2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>

	* config/sh/sh-protos.h (tertiary_reload_operand): Remove dead
	function.
	* config/sh/sh.c (tertiary_reload_operand): Likewise.

Comments

Kaz Kojima March 1, 2012, 9:45 p.m. UTC | #1
Oleg Endo <oleg.endo@t-online.de> wrote:
> The function tertiary_reload_operand in sh.c seems to be dead code.  The
> attached patch deletes it.
> 
> Tested with: make all-gcc
> 
> OK to apply?
> 
> Cheers,
> Oleg
> 
> 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
> 
> 	* config/sh/sh-protos.h (tertiary_reload_operand): Remove dead
> 	function.
> 	* config/sh/sh.c (tertiary_reload_operand): Likewise.

OK with updating copyright years.

Regards,
	kaz
Oleg Endo March 1, 2012, 10:07 p.m. UTC | #2
On Fri, 2012-03-02 at 06:45 +0900, Kaz Kojima wrote:
> Oleg Endo <oleg.endo@t-online.de> wrote:
> > The function tertiary_reload_operand in sh.c seems to be dead code.  The
> > attached patch deletes it.
> > 
> > Tested with: make all-gcc
> > 
> > OK to apply?
> > 
> > Cheers,
> > Oleg
> > 
> > 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
> > 
> > 	* config/sh/sh-protos.h (tertiary_reload_operand): Remove dead
> > 	function.
> > 	* config/sh/sh.c (tertiary_reload_operand): Likewise.
> 
> OK with updating copyright years.
> 

I will go through the other SH source files and fix the copyright years
in a separate patch, OK?
Kaz Kojima March 1, 2012, 10:35 p.m. UTC | #3
Oleg Endo <oleg.endo@t-online.de> wrote:
> I will go through the other SH source files and fix the copyright years
> in a separate patch, OK?

OK.

Regards,
	kaz
diff mbox

Patch

Index: gcc/config/sh/sh-protos.h
===================================================================
--- gcc/config/sh/sh-protos.h	(revision 184757)
+++ gcc/config/sh/sh-protos.h	(working copy)
@@ -104,7 +104,6 @@ 
 extern int arith_operand (rtx, enum machine_mode);
 extern int arith_reg_or_0_operand (rtx, enum machine_mode);
 extern int logical_operand (rtx, enum machine_mode);
-extern int tertiary_reload_operand (rtx, enum machine_mode);
 extern int fpscr_operand (rtx, enum machine_mode);
 extern int fpul_operand (rtx, enum machine_mode);
 extern int commutative_float_operator (rtx, enum machine_mode);
Index: gcc/config/sh/sh.c
===================================================================
--- gcc/config/sh/sh.c	(revision 184757)
+++ gcc/config/sh/sh.c	(working copy)
@@ -9201,13 +9201,6 @@ 
   return 1;
 }
 
-int
-tertiary_reload_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
-{
-  enum rtx_code code = GET_CODE (op);
-  return code == MEM || (TARGET_SH4 && code == CONST_DOUBLE);
-}
-
 /* Return the TLS type for TLS symbols, 0 for otherwise.  */
 enum tls_model
 tls_symbolic_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)