aboutsummaryrefslogtreecommitdiff
path: root/gcc/dce.c
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2008-02-26 19:21:21 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2008-02-26 14:21:21 -0500
commit7d817ebc0d283639a4659b388c074aff1accc3b3 (patch)
treed3d1d41238e71fa67b722a736ee63be9e08201fe /gcc/dce.c
parenta19b7d465087d3105de11c32ed67fcae81bedfe7 (diff)
downloadgcc-7d817ebc0d283639a4659b388c074aff1accc3b3.zip
gcc-7d817ebc0d283639a4659b388c074aff1accc3b3.tar.gz
gcc-7d817ebc0d283639a4659b388c074aff1accc3b3.tar.bz2
dbgcnt.def (cfg_cleanup, [...]): New counters.
* dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1, dse2, gcse, if_conversion, if_after_combine, if_after_reload, jump_bypass): New counters. * cfgcleanup.c (cleanup_cfg): Add dbg_cnt. * dce.c (gate_ud_dce): Same. (gate_fast_dce): Same. * dse.c (gate_dse1): New function. (gate_dse2): New function. (gate_dse): Merge results of new gate functions. * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt. (gate_handle_jump_bypass): Add dbg_cnt. (gate_handle_gcse): Add dbg_cnt. * ifcvt.c (gate_handle_if_conversion): Same. (gate_handle_if_after_combine): Same. (gate_handle_if_after_reload): Same. * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o. From-SVN: r132684
Diffstat (limited to 'gcc/dce.c')
-rw-r--r--gcc/dce.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/dce.c b/gcc/dce.c
index e63a07a..70b9e22 100644
--- a/gcc/dce.c
+++ b/gcc/dce.c
@@ -563,7 +563,8 @@ rest_of_handle_ud_dce (void)
static bool
gate_ud_dce (void)
{
- return optimize > 1 && flag_dce;
+ return optimize > 1 && flag_dce
+ && dbg_cnt (dce_ud);
}
struct tree_opt_pass pass_ud_rtl_dce =
@@ -848,7 +849,8 @@ run_fast_dce (void)
static bool
gate_fast_dce (void)
{
- return optimize > 0 && flag_dce;
+ return optimize > 0 && flag_dce
+ && dbg_cnt (dce_fast);
}
struct tree_opt_pass pass_fast_rtl_dce =