aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivcanon.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-11-07 07:36:39 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-11-07 07:36:39 +0000
commit76bc24ff68284d90bc8d334b72c9690382747add (patch)
treec85c1f3326582892807f553f5c7b90aab66a9c0c /gcc/tree-ssa-loop-ivcanon.c
parentf06abe6d75618da127eef0de4231cefd3b24b977 (diff)
downloadgcc-76bc24ff68284d90bc8d334b72c9690382747add.zip
gcc-76bc24ff68284d90bc8d334b72c9690382747add.tar.gz
gcc-76bc24ff68284d90bc8d334b72c9690382747add.tar.bz2
dbgcnt.def (gimple_unroll): New.
2019-11-07 Richard Biener <rguenther@suse.de> * dbgcnt.def (gimple_unroll): New. * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check gimple_unroll debug counter before applying transform. (try_peel_loop): Likewise. From-SVN: r277907
Diffstat (limited to 'gcc/tree-ssa-loop-ivcanon.c')
-rw-r--r--gcc/tree-ssa-loop-ivcanon.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c
index d38959c..c505f85 100644
--- a/gcc/tree-ssa-loop-ivcanon.c
+++ b/gcc/tree-ssa-loop-ivcanon.c
@@ -64,6 +64,7 @@ along with GCC; see the file COPYING3. If not see
#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 +885,9 @@ try_unroll_loop_completely (class loop *loop,
}
}
+ if (!dbg_cnt (gimple_unroll))
+ return false;
+
initialize_original_copy_tables ();
auto_sbitmap wont_exit (n_unroll + 1);
if (exit && niter
@@ -1074,6 +1078,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);