diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-22 02:04:25 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-22 02:04:25 +0000 |
commit | 6e898352ec0e5a656c97186134e31b7fd06ca06f (patch) | |
tree | 3114403bb3070cab9b0afd98aedb05080340f804 /gcc/ra-rewrite.c | |
parent | 6fc8784048bd1a34f08bf37fde4e7d7e6811b96f (diff) | |
download | gcc-6e898352ec0e5a656c97186134e31b7fd06ca06f.tar.gz |
* 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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55637 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ra-rewrite.c')
-rw-r--r-- | gcc/ra-rewrite.c | 28 |
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. */ |