[MIPS GlobalISel] Lower SRet pointer arguments
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Thu, 5 Sep 2019 11:12:01 +0000 (11:12 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Thu, 5 Sep 2019 11:12:01 +0000 (11:12 +0000)
commitd2574d79b64db47051f0ea19de184218302e322a
treeb4aac8dde0dd740c31c8d7eae04966e741050210
parent071287c5a9320b4bf7892094b619152df424aa1f
[MIPS GlobalISel] Lower SRet pointer arguments

Instead of returning structure by value clang usually adds pointer
to that structure as an argument. Pointers don't require special
handling no matter the SRet flag. Remove unsuccessful exit from
lowerCall for arguments with SRet flag if they are pointers.

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

llvm-svn: 371054
llvm/lib/Target/Mips/MipsCallLowering.cpp
llvm/test/CodeGen/Mips/GlobalISel/irtranslator/sret_pointer.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/sret_pointer.ll [new file with mode: 0644]