diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-09-22 21:39:44 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-09-22 19:39:44 +0000 |
commit | 114783066e5d1046dfe83bb987008f4c2729e8f6 (patch) | |
tree | b404afbf06494ab4a638586fe78ffa6a9f2b91f5 /gcc/predict.c | |
parent | 6863c41a15ac58554cd413c1dcde9f43d9dba4c0 (diff) | |
download | gcc-114783066e5d1046dfe83bb987008f4c2729e8f6.zip gcc-114783066e5d1046dfe83bb987008f4c2729e8f6.tar.gz gcc-114783066e5d1046dfe83bb987008f4c2729e8f6.tar.bz2 |
tree-ssa-ccp.c (prop_value_d): Rename to ...
* tree-ssa-ccp.c (prop_value_d): Rename to ...
(ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
* ipa-prop.c (struct type_change_info): Rename to ...
(prop_type_change_info): ... this; update uses.
* ggc-page.c (globals): Rename to ...
(static struct ggc_globals): ... this; update uses.
* tree-ssa-loop-im.c (mem_ref): Rename to ...
(im_mem_ref): ... this; update uses.
* ggc-common.c (loc_descriptor): Rename to ...
(ggc_loc_descriptor): ... this; update uses.
* lra-eliminations.c (elim_table): Rename to ...
(lra_elim_table): ... this; update uses.
* bitmap.c (output_info): Rename to ...
(bitmap_output_info): ... this; update uses.
* gcse.c (expr): Rename to ...
(gcse_expr) ... this; update uses.
(occr): Rename to ...
(gcse_occr): .. this; update uses.
* tree-ssa-copy.c (prop_value_d): Rename to ...
(prop_value_t): ... this.
* predict.c (block_info_def): Rename to ...
(block_info): ... this; update uses.
(edge_info_def): Rename to ...
(edge_info): ... this; update uses.
* profile.c (bb_info): Rename to ...
(bb_profile_info): ... this; update uses.
* alloc-pool.c (output_info): Rename to ...
(pool_output_info): ... this; update uses.
* ipa-cp.c (topo_info): Rename to ..
(ipa_topo_info): ... this; update uses.
* tree-nrv.c (nrv_data): Rename to ...
(nrv_data_t): ... this; update uses.
* ipa-split.c (bb_info): Rename to ...
(split_bb_info): ... this one.
* profile.h (edge_info): Rename to ...
(edge_profile_info): ... this one; update uses.
* dse.c (bb_info): Rename to ...
(dse_bb_info): ... this one; update uses.
* cprop.c (occr): Rename to ...
(cprop_occr): ... this one; update uses.
(expr): Rename to ...
(cprop_expr): ... this one; update uses.
From-SVN: r215480
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index eb5db2a..56e45d9 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -2496,7 +2496,7 @@ predict_paths_leading_to_edge (edge e, enum br_predictor pred, /* This is used to carry information about basic blocks. It is attached to the AUX field of the standard CFG block. */ -typedef struct block_info_def +struct block_info { /* Estimated frequency of execution of basic_block. */ sreal frequency; @@ -2506,10 +2506,10 @@ typedef struct block_info_def /* Number of predecessors we need to visit first. */ int npredecessors; -} *block_info; +}; /* Similar information for edges. */ -typedef struct edge_info_def +struct edge_prob_info { /* In case edge is a loopback edge, the probability edge will be reached in case header is. Estimated number of iterations of the loop can be @@ -2517,10 +2517,10 @@ typedef struct edge_info_def sreal back_edge_prob; /* True if the edge is a loopback edge in the natural loop. */ unsigned int back_edge:1; -} *edge_info; +}; -#define BLOCK_INFO(B) ((block_info) (B)->aux) -#define EDGE_INFO(E) ((edge_info) (E)->aux) +#define BLOCK_INFO(B) ((block_info *) (B)->aux) +#define EDGE_INFO(E) ((edge_prob_info *) (E)->aux) /* Helper function for estimate_bb_frequencies. Propagate the frequencies in blocks marked in @@ -2935,8 +2935,8 @@ estimate_bb_frequencies (bool force) REG_BR_PROB_BASE; /* Set up block info for each basic block. */ - alloc_aux_for_blocks (sizeof (struct block_info_def)); - alloc_aux_for_edges (sizeof (struct edge_info_def)); + alloc_aux_for_blocks (sizeof (block_info)); + alloc_aux_for_edges (sizeof (edge_prob_info)); FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL, next_bb) { edge e; |