<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 - Bad machine code: Instruction ending live segment doesn't read the register"
   href="https://bugs.llvm.org/show_bug.cgi?id=39440">39440</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bad machine code: Instruction ending live segment doesn't read the register
          </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>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>francisvm@yahoo.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>*** Bad machine code: Instruction ending live segment doesn't read the register
***
- function:    fn
- basic block: %bb.5 if.then13 (0x7fcd6d80ada0) [720B;1056B)
- instruction: 992B     %3:gr8 = COPY %9:gr8
- liverange:  
[96r,128B:1)[128B,992r:0)[992r,1056B:3)[1056B,1136B:0)[1136B,1264B:6)[1328B,1776B:6)[1776B,1904r:8)[1920r,1968B:2)[1968B,2192r:5)[2400r,2448B:4)[3024r,3088B:7)
 0@128B-phi 1@96r 2@1920r 3@992r 4@2400r 5@1968B-phi 6@1136B-phi 7@3024r
8@1776B-phi
- v. register: %3
- segment:     [128B,992r:0)
LLVM ERROR: Found 1 machine code errors.

Seems to come after Simple Register Coalescing.

build/bin/llc -verify-machineinstrs test/CodeGen/X86/pr38795.ll -O2
-mtriple=i386-unknown-linux-gnu -o -</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>