aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2018-01-23 23:27:57 +0000
committerWei Mi <wmi@google.com>2018-01-23 23:27:57 +0000
commitd1621699dc38611fbab364129fabc3d5589a8eae (patch)
treefa8b5894bc78fc9c009593d5d43b31711876cee0 /llvm/lib/Object/WasmObjectFile.cpp
parent4386bc5a60f77acea456e6e497e8ff63c1a79369 (diff)
downloadllvm-d1621699dc38611fbab364129fabc3d5589a8eae.zip
llvm-d1621699dc38611fbab364129fabc3d5589a8eae.tar.gz
llvm-d1621699dc38611fbab364129fabc3d5589a8eae.tar.bz2
Adjust MaxAtomicInlineWidth for i386/i486 targets.
This is to fix the bug reported in https://bugs.llvm.org/show_bug.cgi?id=34347#c6. Currently, all MaxAtomicInlineWidth of x86-32 targets are set to 64. However, i386 doesn't support any cmpxchg related instructions. i486 only supports cmpxchg. So in this patch MaxAtomicInlineWidth is reset as follows: For i386, the MaxAtomicInlineWidth should be 0 because no cmpxchg is supported. For i486, the MaxAtomicInlineWidth should be 32 because it supports cmpxchg. For others 32 bits x86 cpu, the MaxAtomicInlineWidth should be 64 because of cmpxchg8b. Differential Revision: https://reviews.llvm.org/D42154 llvm-svn: 323281
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions