aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2013-11-06 13:11:14 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2013-11-06 13:11:14 +0000
commit7783daa76cdf6a2a71775b41269b07039b0247a3 (patch)
tree412636d3b3527f6788001a096f9c0362869817f5 /gcc/gimple.h
parent3f5c390ddd57a9407fce9b7a471d01972e916367 (diff)
downloadgcc-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/gimple.h')
-rw-r--r--gcc/gimple.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index a548a5b..33e790c 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -1564,20 +1564,12 @@ gimple_set_has_volatile_ops (gimple stmt, bool volatilep)
stmt->gsbase.has_volatile_ops = (unsigned) volatilep;
}
-/* Return true if BB is in a transaction. */
-
-static inline bool
-block_in_transaction (basic_block bb)
-{
- return flag_tm && bb->flags & BB_IN_TRANSACTION;
-}
-
/* Return true if STMT is in a transaction. */
static inline bool
gimple_in_transaction (gimple stmt)
{
- return block_in_transaction (gimple_bb (stmt));
+ return bb_in_transaction (gimple_bb (stmt));
}
/* Return true if statement STMT may access memory. */