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

    <tr>
        <th>Summary</th>
        <td>
            [AMDGPU] Infinite recursion in `evaluateAsRelocatableImpl` when evaluating a cyclical SCC
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Since https://github.com/llvm/llvm-project/pull/102913 landed, we will hit infinite recursion in certain recursive function calls. Here is a small reproducer, https://godbolt.org/z/hTo3Kzjec.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkcuOEz0QhZ_GvSn9LXf1Jd0LL-afqGFACMTAA7jtStqhYke-JJp5epSQERJiw8qST6lOnfPplNzeEynR_y8QP2hPP86fBaLot5UueQ1RHdayUByqJdgX9ey8IVhzPiXRPgicBc57l9ey1CYcBc7M57fnv1MMBzJZ4HwqzALnRuLUtMDaW7ICH-FCcHHMsLoMzu-cd5kgkikxueDBeTAUs3b-7fNMsCve5KtqNHOq4T1FApdAQzpqZoh0isEWQ_Hq8MepwS6Bcx3iXuD8KnBev4X24-uBTF1Z1dqpnXRFqtngZhyx6btqVe2u0ziOk0UztQ1NJEec5MbaAdt2M0yVUyixa6TEpm_6vquHQXbaDiQlTsNiJ9FJOmrH9bWWq3nlUiqkmkaOQ1uxXojTnYGnC9zUO4Wobl0uZZ9EJ9mlnH6vyS7zDd7Dp-27L99Fv4Wnv9YoBklnzUVnekhfiYPRWS9MT8cTi0HCZSUP9wnn96DBvBh2RjM8Pz5WJbL6Z-i3FOmK_VfMs8KfAQAA__9QU8qj">