[cfe-commits] r123241 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp
Bob Wilson
bob.wilson at apple.com
Tue Jan 11 08:53:49 PST 2011
Author: bwilson
Date: Tue Jan 11 10:53:49 2011
New Revision: 123241
URL: http://llvm.org/viewvc/llvm-project?rev=123241&view=rev
Log:
Remove special handling for opaque Neon vector types.
Clang does not wrap the vectors in structs anymore so this isn't needed.
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=123241&r1=123240&r2=123241&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Tue Jan 11 10:53:49 2011
@@ -2241,15 +2241,6 @@
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
More information about the cfe-commits
mailing list