diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-07-02 00:57:27 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-07-02 00:57:27 +0000 |
commit | 14508ff0bffee0fdfe5d336946c6db0e709099c8 (patch) | |
tree | 958bf0864fb19a37b1b0d0ab494d35826f9b35b7 /lib/CodeGen/TargetInfo.cpp | |
parent | 37187cc4554d34fbbb5f168041d6acc4be028fe9 (diff) |
Don't use x86_mmx where it isn't necessary.
The start of some work on getting -mno-mmx working the way we want it to.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index f65fc185ba..8736d59f56 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -1801,12 +1801,7 @@ ABIArgInfo X86_64ABIInfo::classifyArgumentType(QualType Ty, unsigned &neededInt, // order from %xmm0 to %xmm7. case SSE: { const llvm::Type *IRType = CGT.ConvertTypeRecursive(Ty); - if (Hi != NoClass || !UseX86_MMXType(IRType)) - ResType = GetSSETypeAtOffset(IRType, 0, Ty, 0); - else - // This is an MMX type. Treat it as such. - ResType = llvm::Type::getX86_MMXTy(getVMContext()); - + ResType = GetSSETypeAtOffset(IRType, 0, Ty, 0); ++neededSSE; break; } |