===================================================================
@@ -198,3 +198,4 @@ DEBUG_COUNTER (vect_slp)
DEBUG_COUNTER (dom_unreachable_edges)
DEBUG_COUNTER (match)
DEBUG_COUNTER (store_merging)
+DEBUG_COUNTER (gimple_unroll)
===================================================================
@@ -64,6 +64,7 @@ along with GCC; see the file COPYING3.
#include "tree-cfgcleanup.h"
#include "builtins.h"
#include "tree-ssa-sccvn.h"
+#include "dbgcnt.h"
/* Specifies types of loops that may be unrolled. */
@@ -884,6 +887,9 @@ try_unroll_loop_completely (class loop *
}
}
+ if (!dbg_cnt (gimple_unroll))
+ return false;
+
initialize_original_copy_tables ();
auto_sbitmap wont_exit (n_unroll + 1);
if (exit && niter
@@ -1074,6 +1080,9 @@ try_peel_loop (class loop *loop,
return false;
}
+ if (!dbg_cnt (gimple_unroll))
+ return false;
+
/* Duplicate possibly eliminating the exits. */
initialize_original_copy_tables ();
auto_sbitmap wont_exit (npeel + 1);