Patchwork remove unused fiields in init_expmed_rtl expmed.c

login
register
mail settings
Submitter Graham Stott
Date April 25, 2013, 10:31 a.m.
Message ID <1366885894.53695.YahooMailNeo@web87403.mail.ir2.yahoo.com>
Download mbox | patch
Permalink /patch/239471/
State New
Headers show

Comments

Graham Stott - April 25, 2013, 10:31 a.m.
All,
 
The struture init_expmed_rtl defined in expmed.c has many fields which are totally unused
this patch removes them.
 
Bootstraped x86_64 all langauges 
 
Graham
 
gcc/ChangeLog
    * expmed.c: (init_expmed_rtl) Remove unused fields reg_fld, plus_fld, mult_fld, sdiv_fld1, udiv_fld1,
     sdiv_32_fld1, smod_32_fld1, wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1 shift_add_fld1,
     shift_sub0_fld1, shift_sub1_fld1.
Richard Guenther - April 25, 2013, 10:43 a.m.
On Thu, Apr 25, 2013 at 12:31 PM, Graham Stott
<graham.stott@btinternet.com> wrote:
> All,
>
> The struture init_expmed_rtl defined in expmed.c has many fields which are totally unused
> this patch removes them.
>
> Bootstraped x86_64 all langauges
>
Ok.

Thanks,
Richard.

> Graham
>
> gcc/ChangeLog
>     * expmed.c: (init_expmed_rtl) Remove unused fields reg_fld, plus_fld, mult_fld, sdiv_fld1, udiv_fld1,
>      sdiv_32_fld1, smod_32_fld1, wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1 shift_add_fld1,
>      shift_sub0_fld1, shift_sub1_fld1.
>
> Index: gcc/expmed.c
> ===================================================================
> --- gcc/expmed.c (revision 198200)
> +++ gcc/expmed.c (working copy)
> @@ -69,22 +69,22 @@
>
>  struct init_expmed_rtl
>  {
> -  struct rtx_def reg;  rtunion reg_fld[2];
> -  struct rtx_def plus; rtunion plus_fld1;
> +  struct rtx_def reg;
> +  struct rtx_def plus;
>    struct rtx_def neg;
> -  struct rtx_def mult; rtunion mult_fld1;
> -  struct rtx_def sdiv; rtunion sdiv_fld1;
> -  struct rtx_def udiv; rtunion udiv_fld1;
> -  struct rtx_def sdiv_32; rtunion sdiv_32_fld1;
> -  struct rtx_def smod_32; rtunion smod_32_fld1;
> -  struct rtx_def wide_mult; rtunion wide_mult_fld1;
> -  struct rtx_def wide_lshr; rtunion wide_lshr_fld1;
> +  struct rtx_def mult;
> +  struct rtx_def sdiv;
> +  struct rtx_def udiv;
> +  struct rtx_def sdiv_32;
> +  struct rtx_def smod_32;
> +  struct rtx_def wide_mult;
> +  struct rtx_def wide_lshr;
>    struct rtx_def wide_trunc;
> -  struct rtx_def shift; rtunion shift_fld1;
> -  struct rtx_def shift_mult; rtunion shift_mult_fld1;
> -  struct rtx_def shift_add; rtunion shift_add_fld1;
> -  struct rtx_def shift_sub0; rtunion shift_sub0_fld1;
> -  struct rtx_def shift_sub1; rtunion shift_sub1_fld1;
> +  struct rtx_def shift;
> +  struct rtx_def shift_mult;
> +  struct rtx_def shift_add;
> +  struct rtx_def shift_sub0;
> +  struct rtx_def shift_sub1;
>    struct rtx_def zext;
>    struct rtx_def trunc;
>

Patch

Index: gcc/expmed.c
===================================================================
--- gcc/expmed.c (revision 198200)
+++ gcc/expmed.c (working copy)
@@ -69,22 +69,22 @@ 
 
 struct init_expmed_rtl
 {
-  struct rtx_def reg;  rtunion reg_fld[2];
-  struct rtx_def plus; rtunion plus_fld1;
+  struct rtx_def reg;
+  struct rtx_def plus;
   struct rtx_def neg;
-  struct rtx_def mult; rtunion mult_fld1;
-  struct rtx_def sdiv; rtunion sdiv_fld1;
-  struct rtx_def udiv; rtunion udiv_fld1;
-  struct rtx_def sdiv_32; rtunion sdiv_32_fld1;
-  struct rtx_def smod_32; rtunion smod_32_fld1;
-  struct rtx_def wide_mult; rtunion wide_mult_fld1;
-  struct rtx_def wide_lshr; rtunion wide_lshr_fld1;
+  struct rtx_def mult;
+  struct rtx_def sdiv;
+  struct rtx_def udiv;
+  struct rtx_def sdiv_32;
+  struct rtx_def smod_32;
+  struct rtx_def wide_mult;
+  struct rtx_def wide_lshr;
   struct rtx_def wide_trunc;
-  struct rtx_def shift; rtunion shift_fld1;
-  struct rtx_def shift_mult; rtunion shift_mult_fld1;
-  struct rtx_def shift_add; rtunion shift_add_fld1;
-  struct rtx_def shift_sub0; rtunion shift_sub0_fld1;
-  struct rtx_def shift_sub1; rtunion shift_sub1_fld1;
+  struct rtx_def shift;
+  struct rtx_def shift_mult;
+  struct rtx_def shift_add;
+  struct rtx_def shift_sub0; 
+  struct rtx_def shift_sub1;
   struct rtx_def zext;
   struct rtx_def trunc;