<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Greedy Register Allocator fails"
   href="http://llvm.org/bugs/show_bug.cgi?id=16140">16140</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Greedy Register Allocator fails
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>opt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>fwinter@jlab.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10579" name="attach_10579" title="Repro">attachment 10579</a> <a href="attachment.cgi?id=10579&action=edit" title="Repro">[details]</a></span>
Repro

I encounter problems when generating code with the nvptx backend. The codegen
process fails with

Target didn't implement TargetInstrInfo::storeRegToStackSlot!
UNREACHABLE executed at
/u/home/fwinter/git/llvm/include/llvm/Target/TargetInstrInfo.h:482!
Stack dump:
0.    Running pass 'Function Pass Manager' on module 'module'.
1.    Running pass 'Greedy Register Allocator' on function '@main'
Abort (core dumped)

I attach the kernel which provokes this. I know it's large, but it's correct. 

In a separate experiment I outlined frequently occuring operations into a
function, making the kernel a little smaller. It didn't help. I get the same
failure.</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>