diff options
author | Tom de Vries <tom@codesourcery.com> | 2016-01-16 22:18:56 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2016-01-16 22:18:56 +0000 |
commit | 0b0521ba464348f8434684367f05d9dced4dc716 (patch) | |
tree | 2006e6608e4f2dd9844ec766ef4feb9db3001a60 | |
parent | d69da357f77ea4fe440ffe28eeac3229d09cb915 (diff) | |
download | gcc-0b0521ba464348f8434684367f05d9dced4dc716.zip gcc-0b0521ba464348f8434684367f05d9dced4dc716.tar.gz gcc-0b0521ba464348f8434684367f05d9dced4dc716.tar.bz2 |
Release_defs in expand_omp_atomic_fetch_op
2016-01-16 Tom de Vries <tom@codesourcery.com>
* omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
From-SVN: r232472
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/omp-low.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 227acf9..d5ea7f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-01-16 Tom de Vries <tom@codesourcery.com> + + * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt. + 2016-01-16 Richard Sandiford <richard.sandiford@arm.com> * hash-table.h (hash_table::empty): Turn into an inline wrapper diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 6df01a4..b391ee0 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -12020,10 +12020,14 @@ expand_omp_atomic_fetch_op (basic_block load_bb, gcc_assert (gimple_code (gsi_stmt (gsi)) == GIMPLE_OMP_ATOMIC_STORE); gsi_remove (&gsi, true); gsi = gsi_last_bb (store_bb); + stmt = gsi_stmt (gsi); gsi_remove (&gsi, true); if (gimple_in_ssa_p (cfun)) - update_ssa (TODO_update_ssa_no_phi); + { + release_defs (stmt); + update_ssa (TODO_update_ssa_no_phi); + } return true; } |