Commit 2b0e80c
[X86] Use fence(seq_cst) in IdempotentRMWIntoFencedLoad (llvm#126521)
This extends this optimization for scenarios where the subtarget
has `!hasMFence` or we have SyncScope SingleThread, by avoiding
the direct usage of `llvm.x64.sse2.mfence`.
(cherry picked from commit ed6bde9)1 parent 6ca3b70 commit 2b0e80c
File tree
3 files changed
+665
-129
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
3 files changed
+665
-129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31788 | 31788 | | |
31789 | 31789 | | |
31790 | 31790 | | |
31791 | | - | |
31792 | | - | |
31793 | | - | |
31794 | | - | |
31795 | | - | |
31796 | | - | |
31797 | | - | |
31798 | | - | |
31799 | | - | |
31800 | | - | |
31801 | | - | |
31802 | 31791 | | |
31803 | | - | |
31804 | | - | |
31805 | | - | |
| 31792 | + | |
| 31793 | + | |
| 31794 | + | |
31806 | 31795 | | |
31807 | 31796 | | |
31808 | 31797 | | |
| |||
0 commit comments