diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-12 22:30:58 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-12 22:30:58 +0000 |
commit | 548e478b8bd02b0295bc4efd0c282337f00646fd (patch) | |
tree | d5a35ae497683a7a8517f82fe180b65e8a402cda /lib/CodeGen | |
parent | 5363e8df5d274cb32c0c47fd2df45aa02cf68dfe (diff) |
Revert r134946
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index bc611176ce..199ce251a1 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -1235,13 +1235,6 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, 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 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, // 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(); |