summaryrefslogtreecommitdiff
path: root/gcc/df-core.c
diff options
context:
space:
mode:
authorzadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-30 17:38:25 +0000
committerzadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-30 17:38:25 +0000
commit774f8797f927d5da94633135142870bad063a6e9 (patch)
tree0485d05a1cbdb9a1e615d4a9111f61baa720350b /gcc/df-core.c
parenta6dac426d58e3353b7dd3985388886bb5dc7e783 (diff)
downloadgcc-774f8797f927d5da94633135142870bad063a6e9.tar.gz
2007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
* df-core.h (df_dump_region): New function. * df.h (df_dump_region): New function. * loop-invariant.c (find_defs): Add call to df_dump_region. * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to df_dump_region. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127931 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-core.c')
-rw-r--r--gcc/df-core.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc/df-core.c b/gcc/df-core.c
index 3b4e7b3e579..9bebdbe35d1 100644
--- a/gcc/df-core.c
+++ b/gcc/df-core.c
@@ -1761,6 +1761,7 @@ df_print_regset (FILE *file, bitmap r)
/* Dump dataflow info. */
+
void
df_dump (FILE *file)
{
@@ -1778,6 +1779,34 @@ df_dump (FILE *file)
}
+/* Dump dataflow info for df->blocks_to_analyze. */
+
+void
+df_dump_region (FILE *file)
+{
+ if (df->blocks_to_analyze)
+ {
+ bitmap_iterator bi;
+ unsigned int bb_index;
+
+ fprintf (file, "\n\nstarting region dump\n");
+ df_dump_start (file);
+
+ EXECUTE_IF_SET_IN_BITMAP (df->blocks_to_analyze, 0, bb_index, bi)
+ {
+ basic_block bb = BASIC_BLOCK (bb_index);
+
+ df_print_bb_index (bb, file);
+ df_dump_top (bb, file);
+ df_dump_bottom (bb, file);
+ }
+ fprintf (file, "\n");
+ }
+ else
+ df_dump (file);
+}
+
+
/* Dump the introductory information for each problem defined. */
void