diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-29 20:35:53 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-29 20:35:53 +0000 |
commit | 7bae36c2d1c4b9dcf990421404047c2e9e2419e1 (patch) | |
tree | a352b398d8afc1b79e9974c69ece53ed4991ee1c /gcc/toplev.c | |
parent | 6144262c5164e763c28c848105f025e984a011ca (diff) | |
download | gcc-7bae36c2d1c4b9dcf990421404047c2e9e2419e1.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43658 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index f53137e7f7d..6532c731f07 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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. */ |