From 308cba633db81864fb7a4d3285624daa931f3bbc Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 3 Oct 2025 08:43:57 -0700 Subject: [PATCH] [AArch64] Use isStrongerThanMonotonic. NFC --- llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp index 96cc3f3cac91c..3e55b7620ebf9 100644 --- a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp +++ b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp @@ -2957,9 +2957,7 @@ bool AArch64InstructionSelector::select(MachineInstr &I) { AtomicOrdering Order = LdSt.getMMO().getSuccessOrdering(); // Need special instructions for atomics that affect ordering. - if (Order != AtomicOrdering::NotAtomic && - Order != AtomicOrdering::Unordered && - Order != AtomicOrdering::Monotonic) { + if (isStrongerThanMonotonic(Order)) { assert(!isa(LdSt)); assert(MemSizeInBytes <= 8 && "128-bit atomics should already be custom-legalized");