Commit 53aa40a8 by Sebastian Pop Committed by Sebastian Pop

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
parent ba8607be
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.
2010-06-25 Changpeng Fang <changpeng.fang@amd.com> 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
* common.opt (fprefetch-loop-arrays): Re-define * common.opt (fprefetch-loop-arrays): Re-define
......
...@@ -2501,7 +2501,7 @@ tree-nested.o: tree-nested.c $(CONFIG_H) $(SYSTEM_H) $(TM_H) $(TREE_H) \ ...@@ -2501,7 +2501,7 @@ tree-nested.o: tree-nested.c $(CONFIG_H) $(SYSTEM_H) $(TM_H) $(TREE_H) \
tree-if-conv.o: tree-if-conv.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ tree-if-conv.o: tree-if-conv.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(TREE_H) $(FLAGS_H) $(TIMEVAR_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) \ $(TREE_H) $(FLAGS_H) $(TIMEVAR_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) \
$(CFGLOOP_H) $(TREE_DATA_REF_H) $(TREE_PASS_H) $(DIAGNOSTIC_H) \ $(CFGLOOP_H) $(TREE_DATA_REF_H) $(TREE_PASS_H) $(DIAGNOSTIC_H) \
$(TREE_DUMP_H) tree-pretty-print.h gimple-pretty-print.h $(TREE_DUMP_H) $(DBGCNT_H) tree-pretty-print.h gimple-pretty-print.h
tree-iterator.o : tree-iterator.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \ tree-iterator.o : tree-iterator.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
coretypes.h $(GGC_H) tree-iterator.h $(GIMPLE_H) gt-tree-iterator.h coretypes.h $(GGC_H) tree-iterator.h $(GIMPLE_H) gt-tree-iterator.h
tree-dfa.o : tree-dfa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \ tree-dfa.o : tree-dfa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
......
...@@ -160,6 +160,7 @@ DEBUG_COUNTER (global_alloc_at_reg) ...@@ -160,6 +160,7 @@ DEBUG_COUNTER (global_alloc_at_reg)
DEBUG_COUNTER (hoist) DEBUG_COUNTER (hoist)
DEBUG_COUNTER (ia64_sched2) DEBUG_COUNTER (ia64_sched2)
DEBUG_COUNTER (if_conversion) DEBUG_COUNTER (if_conversion)
DEBUG_COUNTER (if_conversion_tree)
DEBUG_COUNTER (if_after_combine) DEBUG_COUNTER (if_after_combine)
DEBUG_COUNTER (if_after_reload) DEBUG_COUNTER (if_after_reload)
DEBUG_COUNTER (local_alloc_for_sched) DEBUG_COUNTER (local_alloc_for_sched)
......
...@@ -98,6 +98,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -98,6 +98,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree-data-ref.h" #include "tree-data-ref.h"
#include "tree-scalar-evolution.h" #include "tree-scalar-evolution.h"
#include "tree-pass.h" #include "tree-pass.h"
#include "dbgcnt.h"
/* List of basic blocks in if-conversion-suitable order. */ /* List of basic blocks in if-conversion-suitable order. */
static basic_block *ifc_bbs; static basic_block *ifc_bbs;
...@@ -1178,7 +1179,8 @@ tree_if_conversion (struct loop *loop) ...@@ -1178,7 +1179,8 @@ tree_if_conversion (struct loop *loop)
{ {
ifc_bbs = NULL; ifc_bbs = NULL;
if (!if_convertible_loop_p (loop)) if (!if_convertible_loop_p (loop)
|| !dbg_cnt (if_conversion_tree))
goto cleanup; goto cleanup;
/* Now all statements are if-convertible. Combine all the basic /* Now all statements are if-convertible. Combine all the basic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment