summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/local-memory-two-objects.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-11-30 21:16:03 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-11-30 21:16:03 +0000
commit26f8f3db39f8fd856cfdce0689c5e5b84536eb9a (patch)
treea7241314f78b6bf81416571bf7b298cd29b6a884 /llvm/test/CodeGen/AMDGPU/local-memory-two-objects.ll
parentac234b604da563cbe53364116cf84abe4abbdb04 (diff)
downloadbcm5719-llvm-26f8f3db39f8fd856cfdce0689c5e5b84536eb9a.tar.gz
bcm5719-llvm-26f8f3db39f8fd856cfdce0689c5e5b84536eb9a.zip
AMDGPU: Rework how private buffer passed for HSA
If we know we have stack objects, we reserve the registers that the private buffer resource and wave offset are passed and use them directly. If not, reserve the last 5 SGPRs just in case we need to spill. After register allocation, try to pick the next available registers instead of the last SGPRs, and then insert copies from the inputs to the reserved registers in the progloue. This also only selectively enables all of the input registers which are really required instead of always enabling them. llvm-svn: 254331
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/local-memory-two-objects.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/local-memory-two-objects.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/local-memory-two-objects.ll b/llvm/test/CodeGen/AMDGPU/local-memory-two-objects.ll
index 7f31ef45b62..6b52b80ba08 100644
--- a/llvm/test/CodeGen/AMDGPU/local-memory-two-objects.ll
+++ b/llvm/test/CodeGen/AMDGPU/local-memory-two-objects.ll
@@ -10,7 +10,7 @@
; EG: .long 166120
; EG-NEXT: .long 8
; GCN: .long 47180
-; GCN-NEXT: .long 38792
+; GCN-NEXT: .long 32900
; EG: {{^}}local_memory_two_objects:
OpenPOWER on IntegriCloud