summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-14 16:24:48 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-14 16:24:48 +0000
commit09d431357cf2fb7639fa4fa748c7e7a7223700f1 (patch)
tree6c9222f5347e7458f0871bbf0cb9f064a3b9f6f9 /gcc/optabs.c
parente90a82bd7b97833cc4b92e28224b660b44011df4 (diff)
downloadgcc-09d431357cf2fb7639fa4fa748c7e7a7223700f1.tar.gz
* optabs.c (expand_atomic_store): Elide redundant model test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194504 138bc75d-0d04-0410-961f-82ee72b054a4
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 99fd02554fa..4f3cbb48916 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);