]> granicus.if.org Git - clang/commit
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)
commit621353684f0db022e5ff02a46d9f5b503f643a1b
treedb556b367cb3c923eb1c91d096d9e9b73eca3c9a
parenta8947ba0ec07fa1d0928652b940938064afbb4e0
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.

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