<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 - NewGVN asserts with lookupOperandLeader(SI->getValueOperand()) != NewClass->getLeader()"
   href="https://bugs.llvm.org/show_bug.cgi?id=32897">32897</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>NewGVN asserts with lookupOperandLeader(SI->getValueOperand()) != NewClass->getLeader()
          </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>Scalar Optimizations
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>davide@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Reduced:

define void @fn1() {
  %d = alloca i64
  br label %for.cond
for.cond:
  br i1 undef, label %if.end5, label %if.end
if.end:
  %e.2 = phi i64* [ %e.3, %if.then7 ], [ %d, %for.cond ]
  br label %if.end5
if.end5:
  %e.3 = phi i64* [ %e.2, %if.end ], [ undef, %for.cond ]
  br i1 undef, label %for.cond, label %if.then7
if.then7:
  store i64 undef, i64* %e.3
  %d.0.d.0.10 = load i64, i64* %d
  %add4 = add nsw i64 %d.0.d.0.10, 0
  store i64 %add4, i64* %d
  br label %if.end
}</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>