diff options
Diffstat (limited to 'gcc/tree-ssa-ter.c')
-rw-r--r-- | gcc/tree-ssa-ter.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gcc/tree-ssa-ter.c b/gcc/tree-ssa-ter.c index 7a7bcc9..b2d19ed 100644 --- a/gcc/tree-ssa-ter.c +++ b/gcc/tree-ssa-ter.c @@ -182,9 +182,7 @@ struct temp_expr_table /* A place for the many, many bitmaps we create. */ static bitmap_obstack ter_bitmap_obstack; -#ifdef ENABLE_CHECKING extern void debug_ter (FILE *, temp_expr_table *); -#endif /* Create a new TER table for MAP. */ @@ -232,16 +230,16 @@ free_temp_expr_table (temp_expr_table *t) { bitmap ret = NULL; -#ifdef ENABLE_CHECKING - unsigned x; - for (x = 0; x <= num_var_partitions (t->map); x++) - gcc_assert (!t->kill_list[x]); - for (x = 0; x < num_ssa_names; x++) + if (flag_checking) { - gcc_assert (t->expr_decl_uids[x] == NULL); - gcc_assert (t->partition_dependencies[x] == NULL); + for (unsigned x = 0; x <= num_var_partitions (t->map); x++) + gcc_assert (!t->kill_list[x]); + for (unsigned x = 0; x < num_ssa_names; x++) + { + gcc_assert (t->expr_decl_uids[x] == NULL); + gcc_assert (t->partition_dependencies[x] == NULL); + } } -#endif BITMAP_FREE (t->partition_in_use); BITMAP_FREE (t->new_replaceable_dependencies); @@ -748,7 +746,6 @@ dump_replaceable_exprs (FILE *f, bitmap expr) } -#ifdef ENABLE_CHECKING /* Dump the status of the various tables in the expression table. This is used exclusively to debug TER. F is the place to send debug info and T is the table being debugged. */ @@ -796,4 +793,3 @@ debug_ter (FILE *f, temp_expr_table *t) fprintf (f, "\n----------\n"); } -#endif |