[llvm] [AMDGPU] Support image atomic no return instructions (PR #150742)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 12 06:52:20 PDT 2025


================
@@ -9130,13 +9143,22 @@ SDValue SITargetLowering::lowerImage(SDValue Op,
     DAG.setNodeMemRefs(NewNode, {MemRef});
   }
 
+  if (BaseOpcode->NoReturn) {
+    if (BaseOpcode->Atomic) {
+      SmallVector<SDValue, 2> RetVals;
----------------
jayfoad wrote:

Don't need a SmallVector for this. You can use a C array. Or just call getMergeValues({X, Y}, DL).

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


More information about the llvm-commits mailing list