diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2010-06-25 18:37:50 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-06-25 18:37:50 +0000 |
commit | 53aa40a821dbbcf90426ddd25682bb91b9572079 (patch) | |
tree | 8d97597618f9c5bfea9a37533d488d25f64dc46a /gcc/tree-if-conv.c | |
parent | ba8607beb2484197330870dd0feda1ab204d5ec5 (diff) | |
download | gcc-53aa40a821dbbcf90426ddd25682bb91b9572079.zip gcc-53aa40a821dbbcf90426ddd25682bb91b9572079.tar.gz gcc-53aa40a821dbbcf90426ddd25682bb91b9572079.tar.bz2 |
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.
From-SVN: r161395
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r-- | gcc/tree-if-conv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 1686473..b7fe749 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 |