<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 - Function verification fails after instcombine"
   href="https://bugs.llvm.org/show_bug.cgi?id=46362">46362</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Function verification fails after instcombine
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>Scalar Optimizations
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>evgueni.brevnov@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23621" name="attach_23621" title="test case">attachment 23621</a> <a href="attachment.cgi?id=23621&action=edit" title="test case">[details]</a></span>
test case

<a href="https://reviews.llvm.org/rG21f7cf4057b75ac3bc46597415499dd0fc214e97">https://reviews.llvm.org/rG21f7cf4057b75ac3bc46597415499dd0fc214e97</a> enabled
function verification after SLP. Now it catches illegal IR which is produced by
instcombine:

opt -passes=instcombine -S test.ll 
PHI node has multiple entries for the same basic block with different incoming
values!
  %local_4_5.lcssa96.neg = phi i32 [ %.neg, %bci_77 ], [ %.neg1, %bci_77 ], [
%.neg2, %bci_112 ], [ -2, %bci_186 ]
label %bci_77
  %.neg = xor i32 %local_4_.ph, -1
  %.neg1 = xor i32 %local_4_.ph, -1
LLVM ERROR: Broken module found, compilation aborted!</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>