<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 --- - Fast isel causes: Assertion `MRI-&gt;getVRegDef(reg) &amp;&amp; &quot;Register use before def!&quot;" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23640&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=3_zx7l7ukBxTpiyKhcpXR3GAqOX7F4avyzV7ozO_0HU&s=3v4bEw5nnPnbuhe0PMjE3wGPToRtp6cGcVBOt2PrFrM&e=">23640</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Fast isel causes: Assertion `MRI->getVRegDef(reg) && "Register use before def!"
          </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>Backend: PowerPC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hfinkel@anl.gov
          </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=14375" name="attach_14375" title="bugpoint reduced test case">attachment 14375</a> <a href="attachment.cgi?id=14375&action=edit" title="bugpoint reduced test case">[details]</a></span>
bugpoint reduced test case

Run the attached (bugpoint-reduced) test case with:

  llc -O0 -relocation-model=pic < boost_O0_bug.ll

and with trunk you'll get:

llc: /src/llvm/lib/CodeGen/LiveVariables.cpp:133: void
llvm::LiveVariables::HandleVirtRegUse(unsigned int, llvm::MachineBasicBlock*,
llvm::MachineInstr*): Assertion `MRI->getVRegDef(reg) && "Register use before
def!"' failed.

It is complaining about this:

    Predecessors according to CFG: BB#5
    %vreg12<def> = IMPLICIT_DEF; G8RC:%vreg12
    %vreg11<def> = CMPD %vreg12, %vreg13; CRRC:%vreg11 G8RC:%vreg12,%vreg13
    BCC 68, %vreg11, <BB#9>; CRRC:%vreg11
    B <BB#7>


and it is indeed unclear where vreg13 is supposed to be defined (it is not
anywhere in the function).</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>