@@ -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_after_combine)
@@ -4325,7 +4325,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;