forked from OSchip/llvm-project
AMDGPU: Set natural stack alignment in DataLayout
Only 4 byte alignment is ever useful, so increasing anything beyond this may require realigning the stack. llvm-svn: 328656
This commit is contained in:
parent
fc5dabe738
commit
95329f8c53
|
@ -261,14 +261,14 @@ static StringRef computeDataLayout(const Triple &TT) {
|
||||||
if (TT.getArch() == Triple::r600) {
|
if (TT.getArch() == Triple::r600) {
|
||||||
// 32-bit pointers.
|
// 32-bit pointers.
|
||||||
return "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128"
|
return "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128"
|
||||||
"-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-A5";
|
"-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 32-bit private, local, and region pointers. 64-bit global, constant and
|
// 32-bit private, local, and region pointers. 64-bit global, constant and
|
||||||
// flat.
|
// flat.
|
||||||
return "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32"
|
return "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32"
|
||||||
"-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128"
|
"-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128"
|
||||||
"-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-A5";
|
"-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5";
|
||||||
}
|
}
|
||||||
|
|
||||||
LLVM_READNONE
|
LLVM_READNONE
|
||||||
|
|
Loading…
Reference in New Issue