summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2017-05-09 17:20:06 +0000
committerPetar Jovanovic <petar.jovanovic@imgtec.com>2017-05-09 17:20:06 +0000
commit753267b7501456d80307a00e367283a27ec2f17c (patch)
tree419755cde5a0ff1f6bbd5051190f206018cea4b6 /clang/lib/CodeGen/TargetInfo.cpp
parentfd5a81594ea373ede71c059f657d7eebc61df4ba (diff)
downloadbcm5719-llvm-753267b7501456d80307a00e367283a27ec2f17c.tar.gz
bcm5719-llvm-753267b7501456d80307a00e367283a27ec2f17c.zip
Revert r302547 ([mips] Impose a threshold for coercion of aggregates)
Reverting Modified MipsABIInfo::classifyArgumentType so that it now coerces aggregate structures only if the size of said aggregate is less than 16/64 bytes, depending on the ABI. as it broke clang-with-lto-ubuntu builder. llvm-svn: 302555
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 5d3ccb86ff8..4ebbef7dfb5 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -6695,14 +6695,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