summaryrefslogtreecommitdiff
path: root/gcc/basic-block.h
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2005-03-14 16:19:56 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2005-03-14 15:19:56 +0000
commit9e32d2be984b4cdebf289aaa70fb08a4704b7b2b (patch)
tree0105e3fc15029ade7ad64a0debaf9cb88b54c34e /gcc/basic-block.h
parentae83e8ae54a962fe7ed9dfe060f2e3af06978999 (diff)
downloadgcc-9e32d2be984b4cdebf289aaa70fb08a4704b7b2b.tar.gz
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
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r--gcc/basic-block.h44
1 files changed, 21 insertions, 23 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index 0821dc5327e..bc5f448319c 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