aboutsummaryrefslogtreecommitdiff
path: root/gcc/ra-rewrite.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-07-22 02:04:25 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-07-22 02:04:25 +0000
commit533c4863631a304fb908021829934a6b81fcb24c (patch)
tree3114403bb3070cab9b0afd98aedb05080340f804 /gcc/ra-rewrite.c
parent8943a0b4d855341542bf9b5fe4d29b616078ca9a (diff)
ra-build.c (check_conflict_numbers): Hide unused function.
* ra-build.c (check_conflict_numbers): Hide unused function. (livethrough_conflicts_bb): Avoid automatic aggregate initialization. (parts_to_webs_1): Avoid `U' integer constant modifier. (conflicts_between_webs): Wrap a variable in the macro controlling its usage. * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE. (dump_igraph, dump_graph_cost): Avoid string concatenation (dump_static_insn_cost): Avoid automatic aggregate initialization. * ra-rewrite.c (insert_stores): Avoid automatic aggregate initialization. (dump_cost): Avoid string concatenation From-SVN: r55637
Diffstat (limited to 'gcc/ra-rewrite.c')
-rw-r--r--gcc/ra-rewrite.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gcc/ra-rewrite.c b/gcc/ra-rewrite.c
index 2dfe12b321c..7d0bbb6c292 100644
--- a/gcc/ra-rewrite.c
+++ b/gcc/ra-rewrite.c
@@ -666,9 +666,11 @@ insert_stores (new_deaths)
if (uid < insn_df_max_uid)
{
unsigned int n;
- struct ra_insn_info info = insn_df[uid];
rtx following = NEXT_INSN (insn);
basic_block bb = BLOCK_FOR_INSN (insn);
+ struct ra_insn_info info;
+
+ info = insn_df[uid];
for (n = 0; n < info.num_defs; n++)
{
struct web *web = def2web[DF_REF_ID (info.defs[n])];
@@ -1949,20 +1951,18 @@ void
dump_cost (level)
unsigned int level;
{
-#define LU HOST_WIDE_INT_PRINT_UNSIGNED
ra_debug_msg (level, "Instructions for spilling\n added:\n");
- ra_debug_msg (level, " loads =%d cost=" LU "\n", emitted_spill_loads,
- spill_load_cost);
- ra_debug_msg (level, " stores=%d cost=" LU "\n", emitted_spill_stores,
- spill_store_cost);
- ra_debug_msg (level, " remat =%d cost=" LU "\n", emitted_remat,
- spill_remat_cost);
- ra_debug_msg (level, " removed:\n");
- ra_debug_msg (level, " moves =%d cost=" LU "\n", deleted_move_insns,
- deleted_move_cost);
- ra_debug_msg (level, " others=%d cost=" LU "\n", deleted_def_insns,
- deleted_def_cost);
-#undef LU
+ ra_debug_msg (level, " loads =%d cost=", emitted_spill_loads);
+ ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, spill_load_cost);
+ ra_debug_msg (level, "\n stores=%d cost=", emitted_spill_stores);
+ ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, spill_store_cost);
+ ra_debug_msg (level, "\n remat =%d cost=", emitted_remat);
+ ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, spill_remat_cost);
+ ra_debug_msg (level, "\n removed:\n moves =%d cost=", deleted_move_insns);
+ ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, deleted_move_cost);
+ ra_debug_msg (level, "\n others=%d cost=", deleted_def_insns);
+ ra_debug_msg (level, HOST_WIDE_INT_PRINT_UNSIGNED, deleted_def_cost);
+ ra_debug_msg (level, "\n");
}
/* Initialization of the rewrite phase. */