* 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
+2013-11-06 Andrew MacLeod <amacleod@redhat.com>
+
+ * 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.
+
2013-11-06 Richard Biener <rguenther@suse.de>
* tree.c (drop_tree_overflow): New function.
#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)
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. */
fmt_data.orig_loop = loop;
for_each_index (&ref->mem.ref, force_move_till, &fmt_data);
- if (block_in_transaction (loop_preheader_edge (loop)->src)
+ if (bb_in_transaction (loop_preheader_edge (loop)->src)
|| !PARAM_VALUE (PARAM_ALLOW_STORE_DATA_RACES))
multi_threaded_model_p = true;