From 83e1a7f080f91f7cc1bb7916cd15779f685c7697 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Mon, 21 May 2012 18:02:17 +0000 Subject: gimple.h (gimple_set_in_transaction): Remove. * gimple.h (gimple_set_in_transaction): Remove. (gimple_in_transaction): Look in BB instead. (gimple_statement_base): Remove in_transaction field. * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION. * trans-mem.c (compute_transaction_bits): Place transaction bit information into basic blocks. From-SVN: r187729 --- gcc/gimple.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'gcc/gimple.h') diff --git a/gcc/gimple.h b/gcc/gimple.h index aefccaa..5236192 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -179,11 +179,6 @@ struct GTY(()) gimple_statement_base { /* Nonzero if this statement contains volatile operands. */ unsigned has_volatile_ops : 1; - /* Nonzero if this statement appears inside a transaction. This bit - is calculated on de-mand and has relevant information only after - it has been calculated with compute_transaction_bits. */ - unsigned in_transaction : 1; - /* The SUBCODE field can be used for tuple-specific flags for tuples that do not require subcodes. Note that SUBCODE should be at least as wide as tree codes, as several tuples store tree codes @@ -1598,15 +1593,7 @@ gimple_set_has_volatile_ops (gimple stmt, bool volatilep) static inline bool gimple_in_transaction (gimple stmt) { - return stmt->gsbase.in_transaction; -} - -/* Set the IN_TRANSACTION flag to TRANSACTIONP. */ - -static inline void -gimple_set_in_transaction (gimple stmt, bool transactionp) -{ - stmt->gsbase.in_transaction = (unsigned) transactionp; + return gimple_bb (stmt)->flags & BB_IN_TRANSACTION; } /* Return true if statement STMT may access memory. */ -- cgit v1.1