[llvm] [SPARC] Weaken emitted barriers for atomic ops (PR #154950)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 24 21:47:45 PDT 2025
================
@@ -3562,3 +3563,27 @@ void SparcTargetLowering::AdjustInstrPostInstrSelection(MachineInstr &MI,
if (!Node->hasAnyUseOfValue(0))
MI.getOperand(0).setReg(SP::G0);
}
+
+Instruction *SparcTargetLowering::emitLeadingFence(IRBuilderBase &Builder,
+ Instruction *Inst,
+ AtomicOrdering Ord) const {
+ bool HasStoreSemantics = isa<AtomicRMWInst>(Inst) || isa<StoreInst>(Inst);
----------------
arsenm wrote:
What about cmpxchg? Comment if it is intended to not be handled
https://github.com/llvm/llvm-project/pull/154950
More information about the llvm-commits
mailing list