<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58539>58539</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Merge d3fcbee10d893b9e01e563c3840414ba89283484 intro 15.0.4
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          brad0
      </td>
    </tr>
</table>

<pre>
    [SPARC] Make calls to function with big return values work

Implement CanLowerReturn and associated CallingConv changes for SPARC/SPARC64.

In particular, for SPARC64 there's new `RetCC_Sparc64_*` functions that handles the return case of the calling convention.
It uses the same analysis as `CC_Sparc64_*` family of funtions, but fails if the return value doesn't fit into the return registers.

This makes calls to functions with big return values converted to an sret function as expected, instead of crashing LLVM.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1U01vnDAQ_TVwsYqMMSwcOGw3qhQpkaqk6jUazABujL2yTbb59x3YbDdRWgkw4_l6b57duf61Tcqvj9_3D4ekvGH38IxMgTGBRceGxaqonWUnHSfW6ZF5jIu37AXMgoGdnH9O-E3C9-fv7Xw0OKON7AD2zp3QP5zjwfYMQnBKQ8SevMZoOx6cfWFqAjtSrcF5doYhvm1rJbMPtS07go9aLQZ8Ig7XhEqyOKHHROwCs3hiScWp7-Hw9EgZqpJPidjT3l86xG2CyKhxb3A18MJLQUDmhm1LnUEyRSiJEuW94bmNbAlveQFmJHZgXoMORHHt_Y_GMGvzuhYmCBuClUC3RPJoGrUe3oPYhst6h8ESJYrRkWlLcryL8TjqENGHDzP6MRGImSQMnzUM_xNx4-dXWSgaLAvkvipPlPD3ERX5V8zaUlfoVyrKQ5jWAd3d_bzPUmzzqqokbzgXad8WfVM0kEYdDbb36EdiVAyqQ8x5XzdF1yDPsawKVdSSy1x2UDeiLmQtV7LesbzMeCbTxZt2ivEYkmJPR4OekXgsXabcTIYxL5fly9G7X4SUTB0CUaOfsi6LJp3aStZ1Xe6EaPqdGCop-0buFOcocqh3ckgNdGjCehfoGqS6FVyInF5eiEKIjA8N1EORC1nDgB1PJMeZtMvWxpnzY-rbDUO3jIGchtQJVyedfT1axEt9WOLkfNt56Hm6gW03pH8Aw5Iq4w">