summaryrefslogtreecommitdiff
path: root/gcc/tree-if-conv.c
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-25 18:37:50 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-25 18:37:50 +0000
commit4bd0f929cfa5fcd5b8fac9eebbf027809b70f656 (patch)
tree8d97597618f9c5bfea9a37533d488d25f64dc46a /gcc/tree-if-conv.c
parent60292b3e068e80a0f50fd3c3442299d6c4dc68da (diff)
downloadgcc-4bd0f929cfa5fcd5b8fac9eebbf027809b70f656.tar.gz
Add a debug counter for the tree-ssa level if-conversion.
2010-06-25 Sebastian Pop <sebastian.pop@amd.com> * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H. * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER. * tree-if-conv.c: Include dbgcnt.h. (tree_if_conversion): Use if_conversion_tree to count the number of if-convertible loops. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161395 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r--gcc/tree-if-conv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c
index 16864734a24..b7fe749c419 100644
--- a/gcc/tree-if-conv.c
+++ b/gcc/tree-if-conv.c
@@ -98,6 +98,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree-data-ref.h"
#include "tree-scalar-evolution.h"
#include "tree-pass.h"
+#include "dbgcnt.h"
/* List of basic blocks in if-conversion-suitable order. */
static basic_block *ifc_bbs;
@@ -1178,7 +1179,8 @@ tree_if_conversion (struct loop *loop)
{
ifc_bbs = NULL;
- if (!if_convertible_loop_p (loop))
+ if (!if_convertible_loop_p (loop)
+ || !dbg_cnt (if_conversion_tree))
goto cleanup;
/* Now all statements are if-convertible. Combine all the basic