Skip to content

Commit b58f91a

Browse files
committed
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.
1 parent 3513267 commit b58f91a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/CodeGen/TargetLoweringBase.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,7 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) {
752752
GatherAllAliasesMaxDepth = 18;
753753
IsStrictFPEnabled = DisableStrictNodeMutation;
754754
MaxBytesForAlignment = 0;
755-
// TODO: the default will be switched to 0 in the next commit, along
756-
// with the Target-specific changes necessary.
757-
MaxAtomicSizeInBitsSupported = 1024;
755+
MaxAtomicSizeInBitsSupported = 0;
758756

759757
// Assume that even with libcalls, no target supports wider than 128 bit
760758
// division.

0 commit comments

Comments
 (0)