Reland: [mips] Impose a threshold for coercion of aggregates
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Wed, 10 May 2017 14:28:18 +0000 (14:28 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Wed, 10 May 2017 14:28:18 +0000 (14:28 +0000)
commit6f4cdb89122d3a2036f17c81e8398bd4bc302e0f
tree1862c82b3985ac9b0bdf8ade70a1022befa6d4d2
parent3d8905f3a03275f517340e5dd3c362f1b3147511
Reland: [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

with minor changes (use regexp instead of the hardcoded values) to the test.

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