trans-mem.c (requires_barrier): Remove call to is_global_var.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 18 Jan 2012 14:13:54 +0000 (14:13 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Wed, 18 Jan 2012 14:13:54 +0000 (14:13 +0000)
        * trans-mem.c (requires_barrier): Remove call to is_global_var.

From-SVN: r183273

gcc/ChangeLog
gcc/trans-mem.c

index 2162439e23a2b8390ab4658d663572e20e0334f4..dc61564c3a36a55881e66e4c94e9b4741353e79d 100644 (file)
@@ -1,3 +1,7 @@
+2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
+
+       * trans-mem.c (requires_barrier): Remove call to is_global_var.
+
 2012-01-18  Richard Guenther  <rguenther@suse.de>
 
        * tree-ssa.c (useless_type_conversion_p): Remove special-casing
index 8b7e51045a94aca1afe9b4b4ab631da582524583..30dc4b3dee355cfbc4db41c12d94ad92e4eff820 100644 (file)
@@ -1496,9 +1496,7 @@ requires_barrier (basic_block entry_block, tree x, gimple stmt)
             during lower_sequence_tm/gimplification, leave the call
             to needs_to_live_in_memory until we eliminate
             lower_sequence_tm altogether.  */
-         needs_to_live_in_memory (x)
-         /* X escapes.  */
-         || is_global_var (x))
+         needs_to_live_in_memory (x))
        return true;
       else
        {