diff options
author | Maxim Kuvyrkov <maxim@codesourcery.com> | 2010-07-27 19:12:21 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <mkuvyrkov@gcc.gnu.org> | 2010-07-27 19:12:21 +0000 |
commit | 62a3f636a22301e50039522b042daea292b49bfd (patch) | |
tree | 2d70db89491fe87947c81231c828af00ede02f6d /gcc | |
parent | e2102efc0024ea23ad94e1bf1bcbfc4483aadbb3 (diff) | |
download | gcc-62a3f636a22301e50039522b042daea292b49bfd.zip gcc-62a3f636a22301e50039522b042daea292b49bfd.tar.gz gcc-62a3f636a22301e50039522b042daea292b49bfd.tar.bz2 |
dbgcnt.def (hoist_insn): New debug counter.
* dbgcnt.def (hoist_insn): New debug counter.
* gcse.c (hoist_code): Use it.
From-SVN: r162586
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dbgcnt.def | 1 | ||||
-rw-r--r-- | gcc/gcse.c | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4435ba..7b66020 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com> + + * dbgcnt.def (hoist_insn): New debug counter. + * gcse.c (hoist_code): Use it. + 2010-07-27 Xinliang David Li <davidxl@google.com> * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter. diff --git a/gcc/dbgcnt.def b/gcc/dbgcnt.def index 0d73d94..a63cb1b 100644 --- a/gcc/dbgcnt.def +++ b/gcc/dbgcnt.def @@ -158,6 +158,7 @@ DEBUG_COUNTER (gcse2_delete) DEBUG_COUNTER (global_alloc_at_func) DEBUG_COUNTER (global_alloc_at_reg) DEBUG_COUNTER (hoist) +DEBUG_COUNTER (hoist_insn) DEBUG_COUNTER (ia64_sched2) DEBUG_COUNTER (if_conversion) DEBUG_COUNTER (if_conversion_tree) @@ -4330,7 +4330,7 @@ hoist_code (void) the vast majority of hoistable expressions are only movable from two successors, so raising this threshold is likely to nullify any benefit we get from code hoisting. */ - if (hoistable > 1) + if (hoistable > 1 && dbg_cnt (hoist_insn)) { SET_BIT (hoist_exprs[bb->index], i); found = 1; |