<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 --- - [dagcombine] redundant 'and' of phi node not removed during isel"
   href="https://llvm.org/bugs/show_bug.cgi?id=25592">25592</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[dagcombine] redundant 'and' of phi node not removed during isel
          </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>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>gberry@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>SelectionDAGBuilder seems to remove redundant 'and' nodes in some cases but not
others.

test/CodeGen/AArch64/free-zext.ll has two cases that demonstrate this.  The
first, test_free_zext3 demonstrates that the 'and' made redundant by
CodeGenPrepare (in bb3) is removed.  In the second test, test_free_zext4, the
'and' of the phi value in the loop block is not removed.  See the TODO comment
in this test for a CHECK-NOT that can be enabled if this issue is resolved.

This issue was discovered during development of the following change:
<a href="http://reviews.llvm.org/D14584">http://reviews.llvm.org/D14584</a></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>