Skip to content

Commit 99b0aaf

Browse files
authored
[AArch64] Use isStrongerThanMonotonic. NFC (#161866)
1 parent 3b38314 commit 99b0aaf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2957,9 +2957,7 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
29572957
AtomicOrdering Order = LdSt.getMMO().getSuccessOrdering();
29582958

29592959
// Need special instructions for atomics that affect ordering.
2960-
if (Order != AtomicOrdering::NotAtomic &&
2961-
Order != AtomicOrdering::Unordered &&
2962-
Order != AtomicOrdering::Monotonic) {
2960+
if (isStrongerThanMonotonic(Order)) {
29632961
assert(!isa<GZExtLoad>(LdSt));
29642962
assert(MemSizeInBytes <= 8 &&
29652963
"128-bit atomics should already be custom-legalized");

0 commit comments

Comments
 (0)