<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 - X86FlagsCopyLowering.cpp fails to remove killed $eflags from successor live-ins"
   href="https://bugs.llvm.org/show_bug.cgi?id=44462">44462</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>X86FlagsCopyLowering.cpp fails to remove killed $eflags from successor live-ins
          </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: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>paulsson@linux.vnet.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>test/CodeGen/X86/copy-eflags.ll contains a function PR37100 which results in
this bug.

This was exposed by the (temporarily reverted) machine verifier improvement for
live-in lists (see <a href="https://reviews.llvm.org/D68267">https://reviews.llvm.org/D68267</a> which also has some
discussion about this test case).

<a href="https://reviews.llvm.org/D71375">https://reviews.llvm.org/D71375</a> is a suggested patch for
X86FlagsCopyLowering.cpp.

# After X86 EFLAGS copy lowering

bb.1.bb1:
...
  TEST8rr %23:gr8, %23:gr8, implicit-def $eflags
  JCC_1 %bb.3, 5, implicit killed $eflags

bb.2.bb1:
; predecessors: %bb.1
  successors: %bb.3(0x80000000); %bb.3(100.00%)
  liveins: $eflags</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>