projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdc9db2
)
i386: Emit mfence_sse2 for -Os [PR95750]
author
Uros Bizjak
<ubizjak@gmail.com>
Fri, 24 Jul 2020 13:59:38 +0000
(15:59 +0200)
committer
Uros Bizjak
<ubizjak@gmail.com>
Fri, 24 Jul 2020 14:00:39 +0000
(16:00 +0200)
2020-07-24 Uroš Bizjak <ubizjak@gmail.com>
gcc/ChangeLog:
PR target/95750
* config/i386/sync.md (mmem_thread_fence): Emit mfence_sse2 for -Os.
gcc/config/i386/sync.md
patch
|
blob
|
history
diff --git
a/gcc/config/i386/sync.md
b/gcc/config/i386/sync.md
index
c88750d
..
ed17bb0
100644
(file)
--- a/
gcc/config/i386/sync.md
+++ b/
gcc/config/i386/sync.md
@@
-123,7
+123,8
@@
rtx mem;
if ((TARGET_64BIT || TARGET_SSE2)
- && !TARGET_AVOID_MFENCE)
+ && (optimize_function_for_size_p (cfun)
+ || !TARGET_AVOID_MFENCE))
mfence_insn = gen_mfence_sse2;
else
mfence_insn = gen_mfence_nosse;