[llvm] [NVPTX][AtomicExpandPass] Complete support for AtomicRMW in NVPTX (PR #176015)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 21 04:35:09 PST 2026


================
@@ -7065,65 +7065,97 @@ NVPTXTargetLowering::shouldExpandAtomicRMWInIR(const AtomicRMWInst *AI) const {
 
 bool NVPTXTargetLowering::shouldInsertFencesForAtomic(
     const Instruction *I) const {
-  auto *CI = dyn_cast<AtomicCmpXchgInst>(I);
   // When CAS bitwidth is not supported on the hardware, the CAS is emulated
----------------
gonzalobg wrote:

```suggestion
```

https://github.com/llvm/llvm-project/pull/176015


More information about the llvm-commits mailing list