From 9e32d2be984b4cdebf289aaa70fb08a4704b7b2b Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Mon, 14 Mar 2005 16:19:56 +0100 Subject: basic-block.h (BB_VISITED): Removed. * basic-block.h (BB_VISITED): Removed. * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag. From-SVN: r96434 --- gcc/basic-block.h | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'gcc/basic-block.h') diff --git a/gcc/basic-block.h b/gcc/basic-block.h index 0821dc5..bc5f448 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -287,43 +287,41 @@ typedef struct reorder_block_def /* Masks for basic_block.flags. - BB_VISITED should not be used by passes, it is used internally by - dfs_enumerate_from. - BB_HOT_PARTITION and BB_COLD_PARTITION should be preserved throughout the compilation, so they are never cleared. 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. */ -/* Set if insns in BB have are modified. Used for updating liveness info. */ -#define BB_DIRTY 1 +enum +{ -/* Only set on blocks that have just been created by create_bb. */ -#define BB_NEW 2 + /* Set if insns in BB have are modified. Used for updating liveness info. */ + BB_DIRTY = 1, -/* Set by find_unreachable_blocks. Do not rely on this being set in any - pass. */ -#define BB_REACHABLE 4 + /* Only set on blocks that have just been created by create_bb. */ + BB_NEW = 2, -/* Used by dfs_enumerate_from to keep track of visited basic blocks. */ -#define BB_VISITED 8 + /* Set by find_unreachable_blocks. Do not rely on this being set in any + pass. */ + BB_REACHABLE = 4, -/* Set for blocks in an irreducible loop by loop analysis. */ -#define BB_IRREDUCIBLE_LOOP 16 + /* Set for blocks in an irreducible loop by loop analysis. */ + BB_IRREDUCIBLE_LOOP = 8, -/* Set on blocks that may actually not be single-entry single-exit block. */ -#define BB_SUPERBLOCK 32 + /* Set on blocks that may actually not be single-entry single-exit block. */ + BB_SUPERBLOCK = 16, -/* Set on basic blocks that the scheduler should not touch. This is used - by SMS to prevent other schedulers from messing with the loop schedule. */ -#define BB_DISABLE_SCHEDULE 64 + /* Set on basic blocks that the scheduler should not touch. This is used + by SMS to prevent other schedulers from messing with the loop schedule. */ + BB_DISABLE_SCHEDULE = 32, -/* Set on blocks that should be put in a hot section. */ -#define BB_HOT_PARTITION 128 + /* Set on blocks that should be put in a hot section. */ + BB_HOT_PARTITION = 64, -/* Set on blocks that should be put in a cold section. */ -#define BB_COLD_PARTITION 256 + /* Set on blocks that should be put in a cold section. */ + BB_COLD_PARTITION = 128 +}; /* Dummy flag for convenience in the hot/cold partitioning code. */ #define BB_UNPARTITIONED 0 -- cgit v1.1