Commit 62a3f636 by Maxim Kuvyrkov Committed by Maxim Kuvyrkov

dbgcnt.def (hoist_insn): New debug counter.

	* dbgcnt.def (hoist_insn): New debug counter.
	* gcse.c (hoist_code): Use it.

From-SVN: r162586
parent e2102efc
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> 2010-07-27 Xinliang David Li <davidxl@google.com>
* tree-ssa-loop-ivopts.c (niter_for_exit): New parameter. * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
......
...@@ -158,6 +158,7 @@ DEBUG_COUNTER (gcse2_delete) ...@@ -158,6 +158,7 @@ DEBUG_COUNTER (gcse2_delete)
DEBUG_COUNTER (global_alloc_at_func) DEBUG_COUNTER (global_alloc_at_func)
DEBUG_COUNTER (global_alloc_at_reg) DEBUG_COUNTER (global_alloc_at_reg)
DEBUG_COUNTER (hoist) DEBUG_COUNTER (hoist)
DEBUG_COUNTER (hoist_insn)
DEBUG_COUNTER (ia64_sched2) DEBUG_COUNTER (ia64_sched2)
DEBUG_COUNTER (if_conversion) DEBUG_COUNTER (if_conversion)
DEBUG_COUNTER (if_conversion_tree) DEBUG_COUNTER (if_conversion_tree)
......
...@@ -4330,7 +4330,7 @@ hoist_code (void) ...@@ -4330,7 +4330,7 @@ hoist_code (void)
the vast majority of hoistable expressions are only movable the vast majority of hoistable expressions are only movable
from two successors, so raising this threshold is likely from two successors, so raising this threshold is likely
to nullify any benefit we get from code hoisting. */ 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); SET_BIT (hoist_exprs[bb->index], i);
found = 1; found = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment