diff options
author | James Y Knight <jyknight@google.com> | 2024-01-08 23:13:27 -0500 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2024-01-11 18:01:46 -0500 |
commit | b58f91a31b288a7078e3b0330bd92bb14f3649de (patch) | |
tree | 43a18b0474cd4d0419dd181bd209ce468faa925d /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | 3513267770802b79fe5c020cf651942678b1e951 (diff) | |
download | llvm-b58f91a31b288a7078e3b0330bd92bb14f3649de.zip llvm-b58f91a31b288a7078e3b0330bd92bb14f3649de.tar.gz llvm-b58f91a31b288a7078e3b0330bd92bb14f3649de.tar.bz2 |
Set the default value for MaxAtomicSizeInBitsSupported to 0.
This was planned since its introduction, but wasn't rolled out for a
little bit longer than intended (ahem...8 years).
All in-tree targets have now been adjusted to call
setMaxAtomicSizeInBitsSupported explicitly where required, so this
should be a no-op. The docs in docs/Atomics.rst already claimed the
default was 0, so that doesn't need updating.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index e92e3cd..7dffd8d 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -752,9 +752,7 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) { GatherAllAliasesMaxDepth = 18; IsStrictFPEnabled = DisableStrictNodeMutation; MaxBytesForAlignment = 0; - // TODO: the default will be switched to 0 in the next commit, along - // with the Target-specific changes necessary. - MaxAtomicSizeInBitsSupported = 1024; + MaxAtomicSizeInBitsSupported = 0; // Assume that even with libcalls, no target supports wider than 128 bit // division. |