We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b38314 commit 99b0aafCopy full SHA for 99b0aaf
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
@@ -2957,9 +2957,7 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
2957
AtomicOrdering Order = LdSt.getMMO().getSuccessOrdering();
2958
2959
// Need special instructions for atomics that affect ordering.
2960
- if (Order != AtomicOrdering::NotAtomic &&
2961
- Order != AtomicOrdering::Unordered &&
2962
- Order != AtomicOrdering::Monotonic) {
+ if (isStrongerThanMonotonic(Order)) {
2963
assert(!isa<GZExtLoad>(LdSt));
2964
assert(MemSizeInBytes <= 8 &&
2965
"128-bit atomics should already be custom-legalized");
0 commit comments