[clang] [llvm] [AMDGPU] Add initial support for VGPR as memory (PR #205435)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 07:46:59 PDT 2026
================
@@ -0,0 +1,58 @@
+; RUN: llc -O2 -mtriple=amdgcn -mcpu=gfx1200 < %s | FileCheck %s
+; RUN: llc -O2 -mtriple=amdgcn -mcpu=gfx1200 -verify-machineinstrs < %s -o /dev/null
+
+; "VGPR as memory" objects (allocas in addrspace(13)) accessed at constant
+; indices must lower to register copies, never to scratch/buffer memory traffic.
+
+; CHECK-LABEL: store_load_i32:
+; CHECK-NOT: scratch_
+; CHECK-NOT: buffer_
----------------
arsenm wrote:
Generate checks
https://github.com/llvm/llvm-project/pull/205435
More information about the llvm-commits
mailing list