Don't duplicate the DataLayout defaults for integer, floats and vectors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2013-12-16 17:41:15 +00:00
parent 7ef5520e8c
commit 63da3bbcf5
2 changed files with 2 additions and 9 deletions

View File

@ -69,9 +69,7 @@ static std::string computeDataLayout(const NVPTXSubtarget &ST) {
if (!ST.is64Bit())
Ret += "-p:32:32:32";
Ret += "-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-"
"f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-"
"n16:32:64";
Ret += "-i64:64:64-v16:16:16-v32:32:32-n16:32:64";
return Ret;
}

View File

@ -51,16 +51,11 @@ SchedCustomRegistry("r600", "Run R600's custom scheduler",
static std::string computeDataLayout(const AMDGPUSubtarget &ST) {
std::string DataLayout = std::string(
"e"
"-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32"
"-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128"
"e-i64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v96:128:128"
"-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-v2048:2048:2048"
"-n32:64"
);
if (ST.hasHWFP64())
DataLayout.append("-f64:64:64");
if (!ST.is64bit())
DataLayout.append("-p:32:32:32");