gimple.h (block_in_transaction): Move to basic-block.h and rename.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 6 Nov 2013 13:11:14 +0000 (13:11 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Wed, 6 Nov 2013 13:11:14 +0000 (13:11 +0000)
* 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

gcc/ChangeLog
gcc/basic-block.h
gcc/gimple.h
gcc/tree-ssa-loop-im.c

index c211db0..7465c4a 100644 (file)
@@ -1,3 +1,10 @@
+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.
index c88a39d..9c28f14 100644 (file)
@@ -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)
index a548a5b..33e790c 100644 (file)
@@ -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.  */
index 0bcb520..339e7f2 100644 (file)
@@ -1948,7 +1948,7 @@ execute_sm (struct loop *loop, vec<edge> exits, mem_ref_p ref)
   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;