summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorStefan Maksimovic <stefan.maksimovic@mips.com>2018-02-23 13:46:14 +0000
committerStefan Maksimovic <stefan.maksimovic@mips.com>2018-02-23 13:46:14 +0000
commitc30034e574fb9543fcb37f0e899f254893f5a69b (patch)
tree6d5bc4af587ea2a584acdbb37ba162bd4dfcf594 /clang/lib/CodeGen/TargetInfo.cpp
parent5b5e3d8f803aa8f7813ea9b86cb96fb6d6a4254d (diff)
downloadbcm5719-llvm-c30034e574fb9543fcb37f0e899f254893f5a69b.tar.gz
bcm5719-llvm-c30034e574fb9543fcb37f0e899f254893f5a69b.zip
[mips] Revert r325872
There are still outstanding issues with byVal arguments that prevent this from being committed. Revert for now. llvm-svn: 325899
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r--clang/lib/CodeGen/TargetInfo.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index 7d597437683..4ca421bb863 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -6870,14 +6870,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.
OpenPOWER on IntegriCloud