summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-01-11 16:53:49 +0000
committerBob Wilson <bob.wilson@apple.com>2011-01-11 16:53:49 +0000
commitb9fa00e0c20718443ecf10288e819aec41663e9f (patch)
treee722a9b50c5a2949c41f01fc9a578bf3553f96be /clang/lib/CodeGen
parent841df11dab60ee950173f478edf56075cf7d8c7e (diff)
downloadbcm5719-llvm-b9fa00e0c20718443ecf10288e819aec41663e9f.tar.gz
bcm5719-llvm-b9fa00e0c20718443ecf10288e819aec41663e9f.zip
Remove special handling for opaque Neon vector types.
Clang does not wrap the vectors in structs anymore so this isn't needed. llvm-svn: 123241
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/TargetInfo.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index beb44dfa5ba..9c606f0c89f 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -2241,15 +2241,6 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty) const {
if (isRecordWithNonTrivialDestructorOrCopyConstructor(Ty))
return ABIArgInfo::getIndirect(0, /*ByVal=*/false);
- // NEON vectors are implemented as (theoretically) opaque structures wrapping
- // the underlying vector type. We trust the backend to pass the underlying
- // vectors appropriately, so we can unwrap the structs which generally will
- // lead to much cleaner IR.
- if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) {
- if (SeltTy->isVectorType())
- return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0)));
- }
-
// Otherwise, pass by coercing to a structure of the appropriate size.
//
// FIXME: This is kind of nasty... but there isn't much choice because the ARM
OpenPOWER on IntegriCloud