aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2012-12-14 16:24:48 +0000
committerRichard Henderson <rth@gcc.gnu.org>2012-12-14 08:24:48 -0800
commit5e3b173a79af6dbf3485cb08083e020633cd9f9f (patch)
tree6c9222f5347e7458f0871bbf0cb9f064a3b9f6f9 /gcc/optabs.c
parentebd3e642dd3c7969f462b65dfd155a91c3972701 (diff)
downloadgcc-5e3b173a79af6dbf3485cb08083e020633cd9f9f.zip
gcc-5e3b173a79af6dbf3485cb08083e020633cd9f9f.tar.gz
gcc-5e3b173a79af6dbf3485cb08083e020633cd9f9f.tar.bz2
* optabs.c (expand_atomic_store): Elide redundant model test.
From-SVN: r194504
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 99fd025..4f3cbb4 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -7537,8 +7537,7 @@ expand_atomic_store (rtx mem, rtx val, enum memmodel model, bool use_release)
}
/* Otherwise assume stores are atomic, and emit the proper barriers. */
- if (model == MEMMODEL_SEQ_CST || model == MEMMODEL_RELEASE)
- expand_mem_thread_fence (model);
+ expand_mem_thread_fence (model);
emit_move_insn (mem, val);