]> granicus.if.org Git - clang/commit
[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)
commit94670e82be07cdfe605f9391bf96acd3edb3a05e
treeaea0e23be2fe2a62aab5b89d4d591fcabfd72bf6
parent89098a4dac7ca3aaa96f717fec66a46c432dcec5
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302547 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp
test/CodeGen/mips-aggregate-arg.c [new file with mode: 0644]