summaryrefslogtreecommitdiff
path: root/gcc/basic-block.h
diff options
context:
space:
mode:
authoramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-06 13:11:14 +0000
committeramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-06 13:11:14 +0000
commitc927329e513aa7761f059d99753f5ba32544912c (patch)
tree412636d3b3527f6788001a096f9c0362869817f5 /gcc/basic-block.h
parent4a8f88ff0c38b6acf5d0c6d5c43c5a6071eeb2ff (diff)
downloadgcc-c927329e513aa7761f059d99753f5ba32544912c.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204455 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r--gcc/basic-block.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index c88a39de507..9c28f14afa4 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)