]> gcc.gnu.org Git - gcc.git/commitdiff
ssa-dce.c (ssa_eliminate_dead_code): Renamed from eliminate_date_code.
authorJeffrey A Law <law@cygnus.com>
Fri, 29 Jun 2001 20:35:53 +0000 (20:35 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 29 Jun 2001 20:35:53 +0000 (14:35 -0600)
        * ssa-dce.c (ssa_eliminate_dead_code): Renamed from
        eliminate_date_code.
        * ssa.h (ssa_eliminate_dead_code): Corresponding changes.
        * timevar.def (TV_SSA_DCE): Renamed from TV_DEAD_CODE_ELIM.
        * toplev.c (DFI_ssa_dce): Renamed from DFI_dce.
        (dump_file_info): Similar changes.
        (flag_ssa_dce): Similarly
        (f_options): Similar changes.
        (rest_of_compilation): Corresponding changes.
        * doc/invoke.texi: Update as option is now -fssa-dce instead
        of -fdce.  Update dump file name.

From-SVN: r43658

gcc/ChangeLog
gcc/doc/invoke.texi
gcc/ssa-dce.c
gcc/ssa.h
gcc/timevar.def
gcc/toplev.c

index 07cb16bd570a6b9be2e8d105ae3dd5d12e6d4037..407ae100a2239acb8e3256402bfd390f34a7c4c3 100644 (file)
@@ -1,5 +1,17 @@
 Fri Jun 29 12:27:24 2001  Jeffrey A Law  (law@cygnus.com)
 
+       * ssa-dce.c (ssa_eliminate_dead_code): Renamed from
+       eliminate_date_code.
+       * ssa.h (ssa_eliminate_dead_code): Corresponding changes.
+       * timevar.def (TV_SSA_DCE): Renamed from TV_DEAD_CODE_ELIM.
+       * toplev.c (DFI_ssa_dce): Renamed from DFI_dce.
+       (dump_file_info): Similar changes.
+       (flag_ssa_dce): Similarly
+       (f_options): Similar changes.
+       (rest_of_compilation): Corresponding changes.
+       * doc/invoke.texi: Update as option is now -fssa-dce instead
+       of -fdce.  Update dump file name.
+
        * ssa-dce.c (note_inherently_necessary_set): New function.
        (find_inherently_necessary): Use it.  Do not consider
        NOTEs, CODE_LABELs or BARRIERS are necessary.  Improve
index 59bc95f805792d3d2ed141ea76d53a320d04d76d..6b2413394df68f6729567ce68c175f72ab71826f 100644 (file)
@@ -254,7 +254,7 @@ in the following sections.
 -falign-functions=@var{n}  -falign-jumps=@var{n} @gol
 -falign-labels=@var{n}  -falign-loops=@var{n}  @gol
 -fbranch-probabilities  -fcaller-saves @gol
--fcse-follow-jumps  -fcse-skip-blocks  -fdata-sections  -fdce @gol
+-fcse-follow-jumps  -fcse-skip-blocks  -fdata-sections @gol
 -fdelayed-branch  -fdelete-null-pointer-checks @gol
 -fexpensive-optimizations  -ffast-math  -ffloat-store @gol
 -fforce-addr  -fforce-mem  -ffunction-sections @gol
@@ -270,7 +270,7 @@ in the following sections.
 -fregmove  -frename-registers @gol
 -frerun-cse-after-loop  -frerun-loop-opt @gol
 -fschedule-insns  -fschedule-insns2 @gol
--fsingle-precision-constant  -fssa @gol
+-fsingle-precision-constant  -fssa -fssa-dce @gol
 -fstrength-reduce  -fstrict-aliasing  -fthread-jumps  -ftrapv @gol
 -funroll-all-loops  -funroll-loops  @gol
 --param @var{name}=@var{value}
@@ -2946,7 +2946,7 @@ sometimes follows CSE), to @file{@var{file}.10.cse2}.
 Dump after the second flow pass, to @file{@var{file}.21.flow2}.
 @item X
 @opindex dX
-Dump after dead code elimination, to @file{@var{file}.06.dce}.
+Dump after SSA aggressive dead code elimination, to @file{@var{file}.06.ssadce}.
 @item z
 @opindex dz
 Dump after the peephole pass, to @file{@var{file}.22.peephole2}.
@@ -3732,10 +3732,10 @@ flow graph is translated into SSA form, optimizations are performed, and
 the flow graph is translated back from SSA form.  Users should not
 specify this option, since it is not yet ready for production use.
 
-@item -fdce
-@opindex fdce
-Perform dead-code elimination in SSA form.  Requires @option{-fssa}.  Like
-@option{-fssa}, this is an experimental feature.
+@item -fssa-dce
+@opindex fssa-dce
+Perform aggressive dead-code elimination in SSA form.  Requires @option{-fssa}.
+Like @option{-fssa}, this is an experimental feature.
 
 @item -fsingle-precision-constant
 @opindex fsingle-precision-constant
index 1e77cd87ee0fd0a02fe5c9f4fbaf9879c6ce97ab..9e384c4ea958879974869af5e9de2e34cc9ac7db 100644 (file)
@@ -503,7 +503,7 @@ delete_insn_bb (insn)
 /* Perform the dead-code elimination.  */
 
 void
-eliminate_dead_code ()
+ssa_eliminate_dead_code ()
 {
   int i;
   rtx insn;
index 5eb97855b7035cdbd585fd6442bd5baeaba7598c..a5655958d42589ee09db88debb255b8b0f92f451 100644 (file)
--- a/gcc/ssa.h
+++ b/gcc/ssa.h
@@ -33,7 +33,7 @@ extern int remove_phi_alternative     PARAMS ((rtx, basic_block));
 
 /* Optimizations.  */
 /* In ssa-dce.c */
-extern void eliminate_dead_code                PARAMS ((void));
+extern void ssa_eliminate_dead_code    PARAMS ((void));
 
 /* SSA definitions and uses.  */
 /* This flag is set when the CFG is in SSA form.  */
index 8205caa3a8a697e87e4420a714324b868b582fd6..884eedb2e04f2f2d2b44dc5c984a754ae89da704 100644 (file)
@@ -70,7 +70,7 @@ DEFTIMEVAR (TV_REORDER_BLOCKS        , "reorder blocks")
 DEFTIMEVAR (TV_SHORTEN_BRANCH        , "shorten branches")
 DEFTIMEVAR (TV_REG_STACK             , "reg stack")
 DEFTIMEVAR (TV_TO_SSA                , "convert to SSA")
-DEFTIMEVAR (TV_DEAD_CODE_ELIM        , "eliminate dead code")
+DEFTIMEVAR (TV_SSA_DCE               , "SSA aggressive DCE")
 DEFTIMEVAR (TV_FROM_SSA              , "convert from SSA")
 DEFTIMEVAR (TV_FINAL                 , "final")
 DEFTIMEVAR (TV_SYMOUT                , "symout")
index f53137e7f7d8d1187076980760662dbf5afafd77..6532c731f07855f3f1cc55b787a94fd1a24b5d8a 100644 (file)
@@ -256,7 +256,7 @@ enum dump_file_index
   DFI_cse,
   DFI_addressof,
   DFI_ssa,
-  DFI_dce,
+  DFI_ssa_dce,
   DFI_ussa,
   DFI_gcse,
   DFI_loop,
@@ -302,7 +302,7 @@ struct dump_file_info dump_file[DFI_MAX] =
   { "cse",     's', 0, 0, 0 },
   { "addressof", 'F', 0, 0, 0 },
   { "ssa",     'e', 1, 0, 0 },
-  { "dce",     'X', 1, 0, 0 },
+  { "ssadce",  'X', 1, 0, 0 },
   { "ussa",    'e', 1, 0, 0 }, /* Yes, duplicate enable switch.  */
   { "gcse",    'G', 1, 0, 0 },
   { "loop",    'L', 1, 0, 0 },
@@ -819,7 +819,7 @@ int flag_gnu_linker = 1;
 int flag_ssa = 0;
 
 /* Enable dead code elimination. */
-int flag_dce = 0;
+int flag_ssa_dce = 0;
 
 /* Tag all structures with __attribute__(packed).  */
 int flag_pack_struct = 0;
@@ -1142,8 +1142,8 @@ lang_independent_options f_options[] =
    N_("Instrument function entry/exit with profiling calls") },
   {"ssa", &flag_ssa, 1,
    N_("Enable SSA optimizations") },
-  {"dce", &flag_dce, 1,
-   N_("Enable dead code elimination") },
+  {"ssa-dce", &flag_ssa_dce, 1,
+   N_("Enable aggressive SSA dead code elimination") },
   {"leading-underscore", &flag_leading_underscore, 1,
    N_("External symbols have a leading underscore") },
   {"ident", &flag_no_ident, 0,
@@ -3064,18 +3064,18 @@ rest_of_compilation (decl)
         blocks, e.g., calling find_basic_blocks () or cleanup_cfg (),
         may cause problems.  */
 
-      if (flag_dce)
+      if (flag_ssa_dce)
        {
          /* Remove dead code. */
 
-         timevar_push (TV_DEAD_CODE_ELIM);
-         open_dump_file (DFI_dce, decl);
+         timevar_push (TV_SSA_DCE);
+         open_dump_file (DFI_ssa_dce, decl);
 
          insns = get_insns ();
-         eliminate_dead_code();
+         ssa_eliminate_dead_code();
 
-         close_dump_file (DFI_dce, print_rtl_with_bb, insns);
-         timevar_pop (TV_DEAD_CODE_ELIM);
+         close_dump_file (DFI_ssa_dce, print_rtl_with_bb, insns);
+         timevar_pop (TV_SSA_DCE);
        }
 
       /* Convert from SSA form.  */
This page took 0.092086 seconds and 5 git commands to generate.