<html>
    <head>
      <base href="https://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 --- - patchpoint: ran out of registers during register allocation"
   href="https://llvm.org/bugs/show_bug.cgi?id=23306">23306</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>patchpoint: ran out of registers during register allocation
          </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>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>Register Allocator
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>undingen@gmail.com
          </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=14235" name="attach_14235" title="Example using a lot of GVs">attachment 14235</a> <a href="attachment.cgi?id=14235&action=edit" title="Example using a lot of GVs">[details]</a></span>
Example using a lot of GVs

When I create a patchpoint with many live values I get a "ran out of registers
during register allocation" error. I tested it with 3.6 and trunk.

Changing the regalloc does not help.

@c0 = external global i64
@c1 = external global i64
...
  %ret = call i64 (i64, i32, i8*, i32, ...)*
@llvm.experimental.patchpoint.i64(i64 0, i32 512, i8* inttoptr (i64 -1 to i8*),
i32 0, i64* @c0, i64* @c1, i64* @c2, i64* @c3, i64* @c4, i64* @c5, i64* @c6,
i64* @c7, i64* @c8, i64* @c9, i64* @c10, i64* @c11, i64* @c12, i64* @c13, i64*
@c14, i64* @c15)
  ret i64 %ret

llc output: LLVM ERROR: ran out of registers during register allocation</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>