aboutsummaryrefslogtreecommitdiff
path: root/gcc/basic-block.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-08-13 13:49:54 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-08-13 13:49:54 +0000
commit391886c8e0153d41b3ab4daf4d2dd1d923d9c50f (patch)
treec9e7c894d3f7d2eaf1bfddbb370a7e8c883063c2 /gcc/basic-block.h
parent9006f7f325461dff15a5adaa577b36b789eab2a0 (diff)
downloadgcc-391886c8e0153d41b3ab4daf4d2dd1d923d9c50f.zip
gcc-391886c8e0153d41b3ab4daf4d2dd1d923d9c50f.tar.gz
gcc-391886c8e0153d41b3ab4daf4d2dd1d923d9c50f.tar.bz2
basic-block.h (struct basic_block): Remove loop_depth member, move flags and index members next to each other.
2012-08-13 Richard Guenther <rguenther@suse.de> * basic-block.h (struct basic_block): Remove loop_depth member, move flags and index members next to each other. * cfgloop.h (bb_loop_depth): New inline function. * cfghooks.c (split_block): Do not set loop_depth. (duplicate_block): Likewise. * cfgloop.c (flow_loop_nodes_find): Likewise. (flow_loops_find): Likewise. (add_bb_to_loop): Likewise. (remove_bb_from_loops): Likewise. * cfgrtl.c (force_nonfallthru_and_redirect): Likewise. * gimple-streamer-in.c (input_bb): Do not stream loop_depth. * gimple-streamer-out.c (output_bb): Likewise. * bt-load.c: Include cfgloop.h. (migrate_btr_defs): Use bb_loop_depth. * cfg.c (dump_bb_info): Likewise. * final.c (compute_alignments): Likewise. * ira.c (update_equiv_regs): Likewise. * tree-ssa-copy.c (init_copy_prop): Likewise. * tree-ssa-dom.c (loop_depth_of_name): Likewise. * tree-ssa-forwprop.c: Include cfgloop.h. (forward_propagate_addr_expr): Use bb_loop_depth. * tree-ssa-pre.c (insert_into_preds_of_block): Likewise. * tree-ssa-sink.c (select_best_block): Likewise. * ipa-inline-analysis.c: Include cfgloop.h. (estimate_function_body_sizes): Use bb_loop_depth. * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H). (ipa-inline-analysis.o): Likewise. (bt-load.o): Likewise. * gcc.dg/tree-prof/update-loopch.c: Adjust. From-SVN: r190346
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r--gcc/basic-block.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index dff06e4..8183ce2 100644
--- a/gcc/basic-block.h
+++ b/gcc/basic-block.h
@@ -160,14 +160,14 @@ struct GTY((chain_next ("%h.next_bb"), chain_prev ("%h.prev_bb"))) basic_block_d
} GTY ((tag ("1"))) x;
} GTY ((desc ("((%1.flags & BB_RTL) != 0)"))) il;
- /* Expected number of executions: calculated in profile.c. */
- gcov_type count;
+ /* Various flags. See cfg-flags.def. */
+ int flags;
/* The index of this block. */
int index;
- /* The loop depth of this block. */
- int loop_depth;
+ /* Expected number of executions: calculated in profile.c. */
+ gcov_type count;
/* Expected frequency. Normalized to be in range 0 to BB_FREQ_MAX. */
int frequency;
@@ -176,9 +176,6 @@ struct GTY((chain_next ("%h.next_bb"), chain_prev ("%h.prev_bb"))) basic_block_d
among several basic blocks that share a common locus, allowing for
more accurate sample-based profiling. */
int discriminator;
-
- /* Various flags. See cfg-flags.def. */
- int flags;
};
/* This ensures that struct gimple_bb_info is smaller than