File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -29471,15 +29471,8 @@ bool AArch64TargetLowering::storeNeedsSeqCstTrailingFence(
2947129471 if (RMW && RMW->getOrdering() != AtomicOrdering::SequentiallyConsistent)
2947229472 return false;
2947329473
29474- // We do not need a fence only if we have LSE and are not expanding.
29475- TargetLoweringBase::AtomicExpansionKind ExpandKind =
29476- CAS ? shouldExpandAtomicCmpXchgInIR(CAS) : shouldExpandAtomicRMWInIR(RMW);
29477- if (ExpandKind == AtomicExpansionKind::None && Subtarget->hasLSE())
29478- return false;
29479- if (RMW && ExpandKind == AtomicExpansionKind::CmpXChg && Subtarget->hasLSE())
29480- return false;
29481-
29482- return true;
29474+ // We do not need a fence if we have LSE atomics.
29475+ return !Subtarget->hasLSE();
2948329476}
2948429477
2948529478// Loads and stores less than 128-bits are already atomic; ones above that
You can’t perform that action at this time.
0 commit comments