diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2013-11-06 13:11:14 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2013-11-06 13:11:14 +0000 |
commit | 7783daa76cdf6a2a71775b41269b07039b0247a3 (patch) | |
tree | 412636d3b3527f6788001a096f9c0362869817f5 /gcc/basic-block.h | |
parent | 3f5c390ddd57a9407fce9b7a471d01972e916367 (diff) | |
download | gcc-7783daa76cdf6a2a71775b41269b07039b0247a3.zip gcc-7783daa76cdf6a2a71775b41269b07039b0247a3.tar.gz gcc-7783daa76cdf6a2a71775b41269b07039b0247a3.tar.bz2 |
gimple.h (block_in_transaction): Move to basic-block.h and rename.
* gimple.h (block_in_transaction): Move to basic-block.h and rename.
(gimple_in_transaction): Use bb_in_transaction.
* basic-block.h (bb_in_transaction): Relocate here and rename.
* tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
From-SVN: r204455
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index c88a39d..9c28f14 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -897,6 +897,14 @@ struct loop *get_loop_copy (struct loop *); #include "cfghooks.h" +/* Return true if BB is in a transaction. */ + +static inline bool +bb_in_transaction (basic_block bb) +{ + return bb->flags & BB_IN_TRANSACTION; +} + /* Return true when one of the predecessor edges of BB is marked with EDGE_EH. */ static inline bool bb_has_eh_pred (basic_block bb) |