dbgcnt.def (hoist_insn): New debug counter.
authorMaxim Kuvyrkov <maxim@codesourcery.com>
Tue, 27 Jul 2010 19:12:21 +0000 (19:12 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Tue, 27 Jul 2010 19:12:21 +0000 (19:12 +0000)
* dbgcnt.def (hoist_insn): New debug counter.
* gcse.c (hoist_code): Use it.

From-SVN: r162586

gcc/ChangeLog
gcc/dbgcnt.def
gcc/gcse.c

index e4435ba45ea34055205540b9c1627174d2e718d9..7b66020749666b3bab10967ef99ed953ac43635e 100644 (file)
@@ -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.
index 0d73d942073a9dfb52e76fa118ca08384b1a32bd..a63cb1be550cc18dafff13a7a2869e549d97a74c 100644 (file)
@@ -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)
index 6f345ccbce62f871b0943132419566cf5fbea3bb..e506d47df96c81f6c5efe6f8f9863c72d8c2b8f6 100644 (file)
@@ -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;