aboutsummaryrefslogtreecommitdiff
path: root/gcc/basic-block.h
diff options
context:
space:
mode:
authorSteven Bosscher <stevenb@suse.de>2005-07-11 13:31:44 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2005-07-11 13:31:44 +0000
commit2dd2d53e2c8c049a08ce582ee9354c884e5dd857 (patch)
tree7833a753cbcf6ef3e68611482f64752ccc371262 /gcc/basic-block.h
parent8637038aa8da786fcb53e8192cf9dac20bc62ed5 (diff)
downloadgcc-2dd2d53e2c8c049a08ce582ee9354c884e5dd857.zip
gcc-2dd2d53e2c8c049a08ce582ee9354c884e5dd857.tar.gz
gcc-2dd2d53e2c8c049a08ce582ee9354c884e5dd857.tar.bz2
basic-block.h: Give the BB flags enum a name, bb_flags.
* 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. From-SVN: r101876
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r--gcc/basic-block.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index 267b02d..790b27b 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. */