summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-07-02 10:25:45 +0000
committerTim Northover <tnorthover@apple.com>2014-07-02 10:25:45 +0000
commit1471cb17ae927537b59308eead61e0855d307d5f (patch)
tree152343b6783a46049c02c0d6f9513d80c24de273 /clang/lib
parente7c7c3de9324000feedbf1e332db3e1cedb0a49c (diff)
downloadbcm5719-llvm-1471cb17ae927537b59308eead61e0855d307d5f.tar.gz
bcm5719-llvm-1471cb17ae927537b59308eead61e0855d307d5f.zip
X86: inline all atomic operations up to 128-bits.
The backend *can* cope with all of these now, so Clang should give it the chance. On CPUs without cmpxchg16b (e.g. the original athlon64) LLVM can reform the libcalls. rdar://problem/13496295 llvm-svn: 212173
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Basic/Targets.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 7f5ee91d496..b0dc3356386 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -3292,10 +3292,8 @@ public:
ComplexLongDoubleUsesFP2Ret = true;
// x86-64 has atomics up to 16 bytes.
- // FIXME: Once the backend is fixed, increase MaxAtomicInlineWidth to 128
- // on CPUs with cmpxchg16b
MaxAtomicPromoteWidth = 128;
- MaxAtomicInlineWidth = 64;
+ MaxAtomicInlineWidth = 128;
}
BuiltinVaListKind getBuiltinVaListKind() const override {
return TargetInfo::X86_64ABIBuiltinVaList;
OpenPOWER on IntegriCloud