<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Couldn't join subrange unreachable for RegisterCoalescer remat"
   href="https://bugs.llvm.org/show_bug.cgi?id=33524">33524</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Couldn't join subrange unreachable for RegisterCoalescer remat
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Register Allocator
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>david.stuttard@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18668" name="attach_18668" title="Test case">attachment 18668</a> <a href="attachment.cgi?id=18668&action=edit" title="Test case">[details]</a></span>
Test case

I'm seeing an issue for the AMDGCN backend (llc -march=amdgcn <testcase>.ll)
where the RegisterCoalescer hits unreachable for a SubRange join

I think I've narrowed this down to an issue in a remat (hence the name)

I've got a potential fix for this that I'll post to reviews.llvm.org (and link
from here)

I've already verified that the fix doesn't make any difference to <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Couldn't join subrange unreachable hit"
   href="show_bug.cgi?id=33152">bug 33152</a>
which superficially seems similar.
<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - UNREACHABLE "Couldn't join subrange" in RegisterCoalescer (out-of-tree backend)"
   href="show_bug.cgi?id=32773">bug 32773</a> may also be related</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>