[clang] [CIR][AMDGPU] Look through address_space views of __retval in insertSRetStores (PR #239151)
Steffen Larsen via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 02:51:59 PST 2026
================
@@ -1434,6 +1447,10 @@ insertArgCoercion(mlir::FunctionOpInterface funcOp,
/// `cir.return (cir.load <alloca>)` shape is an invariant guaranteed by
/// CIRGen, so it is asserted via `cast<>` rather than guarded with a
/// fallback.
+///
+/// A `__retval` outside the sret pointer's address space, such as an AMDGPU
+/// addrspace(5) alloca under a default address space sret, is not replaced
----------------
steffenlarsen wrote:
The example doesn't add much.
https://github.com/llvm/llvm-project/pull/239151
More information about the cfe-commits
mailing list