[llvm] [AArch64] Use isStrongerThanMonotonic. NFC (PR #161866)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 3 08:48:16 PDT 2025
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/161866
None
>From 308cba633db81864fb7a4d3285624daa931f3bbc Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
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<GZExtLoad>(LdSt));
assert(MemSizeInBytes <= 8 &&
"128-bit atomics should already be custom-legalized");
More information about the llvm-commits
mailing list