[mips] Impose a threshold for coercion of aggregates
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 9 May 2017 16:24:03 +0000 (16:24 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 9 May 2017 16:24:03 +0000 (16:24 +0000)
commit125c03070edbe7ee8b4f66879a08dc80cd280584
treee3a5ba9111ce1dc828a0d8dc0f65f5d7bea7911b
parent0c42d8c35ba6acd4d3620915c64af5a7badc1e73
[mips] Impose a threshold for coercion of aggregates

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.

Patch by Stefan Maksimovic.

Differential Revision: https://reviews.llvm.org/D32900

llvm-svn: 302547
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGen/mips-aggregate-arg.c [new file with mode: 0644]