projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3939cf9
)
R600/SI: Set correct number of user sgprs for HSA runtime
author
Tom Stellard
<thomas.stellard@amd.com>
Tue, 2 Dec 2014 17:41:43 +0000
(17:41 +0000)
committer
Tom Stellard
<thomas.stellard@amd.com>
Tue, 2 Dec 2014 17:41:43 +0000
(17:41 +0000)
We don't support scratch buffers yet with HSA.
llvm-svn: 223130
llvm/lib/Target/R600/SIISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/R600/SIISelLowering.cpp
b/llvm/lib/Target/R600/SIISelLowering.cpp
index
2733e09
..
85ef37d
100644
(file)
--- a/
llvm/lib/Target/R600/SIISelLowering.cpp
+++ b/
llvm/lib/Target/R600/SIISelLowering.cpp
@@
-489,7
+489,10
@@
SDValue SITargetLowering::LowerFormalArguments(
// The pointer to the list of arguments is stored in SGPR0, SGPR1
// The pointer to the scratch buffer is stored in SGPR2, SGPR3
if (Info->getShaderType() == ShaderType::COMPUTE) {
- Info->NumUserSGPRs = 4;
+ if (Subtarget->isAmdHsaOS())
+ Info->NumUserSGPRs = 2; // FIXME: Need to support scratch buffers.
+ else
+ Info->NumUserSGPRs = 4;
unsigned InputPtrReg =
TRI->getPreloadedValue(MF, SIRegisterInfo::INPUT_PTR);