diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2012-05-31 19:46:43 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2012-05-31 19:46:43 +0000 |
commit | 25919a4e8d4a5c824895696946a3247feac7c1dc (patch) | |
tree | 1ad67e950a74a6bc950bbf5f91748e6acbf640b9 /gcc/gimple.h | |
parent | f30f832c4a3165d50eefdf7aa7f6e9e32d713740 (diff) |
PR tree-optimization/52558
* cfg.c (alloc_aux_for_edge): Fix comment.
(alloc_aux_for_edge): Remove static.
* basic-block.h (alloc_aux_for_edge): Protoize.
* tree-ssa-loop-im.c (execute_sm_if_changed): New.
(execute_sm_if_changed_flag): New.
(execute_sm_if_changed_flag_set): New.
(execute_sm): Do not generate data races unless requested.
(tree_ssa_lim_initialize): Call alloc_aux_for_edges.
(tree_ssa_lim_finalize): Call free_aux_for_edges.
* gimple.h (block_in_transaction): New.
(gimple_in_transaction): Use block_in_transaction.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@188081 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 219592f71cd..8fd64da61db 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1588,12 +1588,20 @@ 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 bb->flags & BB_IN_TRANSACTION; +} + /* Return true if STMT is in a transaction. */ static inline bool gimple_in_transaction (gimple stmt) { - return gimple_bb (stmt)->flags & BB_IN_TRANSACTION; + return block_in_transaction (gimple_bb (stmt)); } /* Return true if statement STMT may access memory. */ |