aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2024-01-08 23:13:27 -0500
committerJames Y Knight <jyknight@google.com>2024-01-11 18:01:46 -0500
commitb58f91a31b288a7078e3b0330bd92bb14f3649de (patch)
tree43a18b0474cd4d0419dd181bd209ce468faa925d /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent3513267770802b79fe5c020cf651942678b1e951 (diff)
downloadllvm-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.cpp4
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.