diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-26 18:06:38 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-26 18:06:38 +0000 |
commit | edfe0dbf0d61f42f48dc544b35c45687cbe1e9b0 (patch) | |
tree | e691ad2d1c68ced9688625a401830f3a64cc09f0 /gcc/basic-block.h | |
parent | be429d54aa868e7f0ae64bf9efe09da13d1c66d3 (diff) | |
download | gcc-edfe0dbf0d61f42f48dc544b35c45687cbe1e9b0.tar.gz |
* dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
* function.h (dom_computed, n_bbs_in_dom_tree): New macros.
* basic-block.h (struct control_flow_graph): Added x_dom_computed
and x_n_bbs_in_dom_tree fields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126960 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index 299df874560..f8920b9e45a 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -348,6 +348,15 @@ enum bb_flags #define BB_COPY_PARTITION(dstbb, srcbb) \ BB_SET_PARTITION (dstbb, BB_PARTITION (srcbb)) +/* State of dominance information. */ + +enum dom_state +{ + DOM_NONE, /* Not computed at all. */ + DOM_NO_FAST_QUERY, /* The data is OK, but the fast query data are not usable. */ + DOM_OK /* Everything is ok. */ +}; + /* A structure to group all the per-function control flow graph data. The x_* prefixing is necessary because otherwise references to the fields of this struct are interpreted as the defines for backward @@ -380,6 +389,12 @@ struct control_flow_graph GTY(()) PROFILE_GUESSED, PROFILE_READ } x_profile_status; + + /* Whether the dominators and the postdominators are available. */ + enum dom_state x_dom_computed[2]; + + /* Number of basic blocks in the dominance tree. */ + unsigned x_n_bbs_in_dom_tree[2]; }; /* Defines for accessing the fields of the CFG structure for function FN. */ @@ -887,13 +902,6 @@ enum cdi_direction CDI_POST_DOMINATORS = 2 }; -enum dom_state -{ - DOM_NONE, /* Not computed at all. */ - DOM_NO_FAST_QUERY, /* The data is OK, but the fast query data are not usable. */ - DOM_OK /* Everything is ok. */ -}; - extern enum dom_state dom_info_state (enum cdi_direction); extern void set_dom_info_availability (enum cdi_direction, enum dom_state); extern bool dom_info_available_p (enum cdi_direction); |