diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-11 13:31:44 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-11 13:31:44 +0000 |
commit | 4fe5a2239c3b79e4c4d6d648b63ac42b733e6105 (patch) | |
tree | 7833a753cbcf6ef3e68611482f64752ccc371262 /gcc/basic-block.h | |
parent | da9300dbb999656a2dbb93526aa350aa58f2bd47 (diff) | |
download | gcc-4fe5a2239c3b79e4c4d6d648b63ac42b733e6105.tar.gz |
* basic-block.h: Give the BB flags enum a name, bb_flags.
Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
* cfgcleanup.c (enum bb_flags): Remove here.
(BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
(notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
(update_forwarder_flag): Likewise.
(thread_jump): Likewise.
(try_forward_edges): Likewise.
(try_optimize_cfg): Likewise. Clear bb->flags before updating the
forwarder flags. Don't clear bb->aux for all basic blocks. Only
reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101876 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index 267b02da3b8..790b27b0222 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -292,7 +292,7 @@ typedef struct basic_block_def *basic_block; All other flags may be cleared by clear_bb_flags(). It is generally a bad idea to rely on any flags being up-to-date. */ -enum +enum bb_flags { /* Set if insns in BB have are modified. Used for updating liveness info. */ @@ -325,7 +325,15 @@ enum BB_DUPLICATED = 256, /* Set on blocks that are in RTL format. */ - BB_RTL = 1024 + BB_RTL = 1024, + + /* Set on blocks that are forwarder blocks. + Only used in cfgcleanup.c. */ + BB_FORWARDER_BLOCK = 2048, + + /* Set on blocks that cannot be threaded through. + Only used in cfgcleanup.c. */ + BB_NONTHREADABLE_BLOCK = 4096 }; /* Dummy flag for convenience in the hot/cold partitioning code. */ |