[cfe-commits] r135004 - in /cfe/trunk: lib/CodeGen/TargetInfo.cpp test/CodeGen/x86_64-arguments.c
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Tue Jul 12 15:30:58 PDT 2011
Author: bruno
Date: Tue Jul 12 17:30:58 2011
New Revision: 135004
URL: http://llvm.org/viewvc/llvm-project?rev=135004&view=rev
Log:
Revert r134946
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
cfe/trunk/test/CodeGen/x86_64-arguments.c
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=135004&r1=135003&r2=135004&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Tue Jul 12 17:30:58 2011
@@ -1235,13 +1235,6 @@
const RecordDecl *RD = RT->getDecl();
- // The only case a 256-bit wide vector could be used is when the struct
- // contains a single 256-bit element. Since Lo and Hi logic isn't extended
- // to work for sizes wider than 128, early check and fallback to memory.
- RecordDecl::field_iterator FirstElt = RD->field_begin();
- if (Size > 128 && getContext().getTypeSize(FirstElt->getType()) != 256)
- return;
-
// Assume variable sized types are passed in memory.
if (RD->hasFlexibleArrayMember())
return;
@@ -1277,7 +1270,7 @@
// Classify the fields one at a time, merging the results.
unsigned idx = 0;
- for (RecordDecl::field_iterator i = FirstElt, e = RD->field_end();
+ for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end();
i != e; ++i, ++idx) {
uint64_t Offset = OffsetBase + Layout.getFieldOffset(idx);
bool BitField = i->isBitField();
Modified: cfe/trunk/test/CodeGen/x86_64-arguments.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/x86_64-arguments.c?rev=135004&r1=135003&r2=135004&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/x86_64-arguments.c (original)
+++ cfe/trunk/test/CodeGen/x86_64-arguments.c Tue Jul 12 17:30:58 2011
@@ -280,7 +280,7 @@
// The two next tests make sure that the struct below is passed
// in the same way regardless of avx being used
-// CHECK: declare void @func40(%struct.t128* byval align 16)
+// TOBECHECKED: declare void @func40(%struct.t128* byval align 16)
typedef float __m128 __attribute__ ((__vector_size__ (16)));
typedef struct t128 {
__m128 m;
@@ -292,7 +292,7 @@
func40(s);
}
-// CHECK: declare void @func42(%struct.t128_2* byval align 16)
+// TOBECHECKED: declare void @func42(%struct.t128_2* byval align 16)
typedef struct xxx {
__m128 array[2];
} Atwo128;
More information about the cfe-commits
mailing list