diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-07-29 21:22:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-07-29 21:22:50 +0000 |
| commit | 09794695ef05a115d0f7a2910c147852d4c17d7c (patch) | |
| tree | 7c949a85f1cd18b90ce408e6b4e927f20c397b9f /clang | |
| parent | c0599ea1e7b064c5099ccd3c5959e3410b825af7 (diff) | |
| download | bcm5719-llvm-09794695ef05a115d0f7a2910c147852d4c17d7c.tar.gz bcm5719-llvm-09794695ef05a115d0f7a2910c147852d4c17d7c.zip | |
now that GetSSETypeAtOffset handles passing SSE class values as
float, the special case hack in getCoerceResult can go away.
llvm-svn: 109804
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 5f4efcf0bd8..fc19637e2ab 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -1127,21 +1127,7 @@ ABIArgInfo X86_64ABIInfo::getCoerceResult(QualType Ty, return (Ty->isPromotableIntegerType() ? ABIArgInfo::getExtend() : ABIArgInfo::getDirect()); - } else if (CoerceTo->isDoubleTy()) { - assert(Ty.isCanonical() && "should always have a canonical type here"); - assert(!Ty.hasQualifiers() && "should never have a qualified type here"); - - // Float and double end up in a single SSE reg. - if (Ty == getContext().FloatTy || Ty == getContext().DoubleTy) - return ABIArgInfo::getDirect(); - - // If this is a 32-bit structure that is passed as a double, then it will be - // passed in the low 32-bits of the XMM register, which is the same as how a - // float is passed. Coerce to a float instead of a double. - if (getContext().getTypeSizeInChars(Ty).getQuantity() == 4) - CoerceTo = llvm::Type::getFloatTy(CoerceTo->getContext()); } - return ABIArgInfo::getDirect(CoerceTo); } |

