Skip to content

Commit

Permalink
Revert r302670 for the upcoming 5.0.0 release
Browse files Browse the repository at this point in the history
This is causing failures when compiling clang with -O3
as one of the structures used by clang is passed by
value and uses the fastcc calling convention.

Faliures manifest for stage2 mips build.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310704 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Stefan Maksimovic committed Aug 11, 2017
1 parent 6dabc87 commit 32ad8fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
8 changes: 0 additions & 8 deletions lib/CodeGen/TargetInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6821,14 +6821,6 @@ MipsABIInfo::classifyArgumentType(QualType Ty, uint64_t &Offset) const {
return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_DirectInMemory);
}

// Use indirect if the aggregate cannot fit into registers for
// passing arguments according to the ABI
unsigned Threshold = IsO32 ? 16 : 64;

if(getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(Threshold))
return ABIArgInfo::getIndirect(CharUnits::fromQuantity(Align), true,
getContext().getTypeAlign(Ty) / 8 > Align);

// If we have reached here, aggregates are passed directly by coercing to
// another structure type. Padding is inserted if the offset of the
// aggregate is unaligned.
Expand Down
38 changes: 0 additions & 38 deletions test/CodeGen/mips-aggregate-arg.c

This file was deleted.

0 comments on commit 32ad8fc

Please sign in to comment.