<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 - [InstCombiner] fatal error: error in backend: Instruction Combining seems stuck in an infinite loop"
   href="https://bugs.llvm.org/show_bug.cgi?id=47788">47788</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[InstCombiner] fatal error: error in backend: Instruction Combining seems stuck in an infinite loop
          </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>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>paulsson@linux.vnet.ibm.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=24041" name="attach_24041" title="original preprocessed test case (csmith)">attachment 24041</a> <a href="attachment.cgi?id=24041&action=edit" title="original preprocessed test case (csmith)">[details]</a></span>
original preprocessed test case (csmith)

clang -O3 -march=arch13 crash2.i -o a.out -w -mllvm -unroll-count=10 -mllvm
-enable-tbaa=false -mllvm -instcombine-infinite-loop-threshold=200

crash2.i (reduced):

short a, b, d;
int c, e;
long f;
short(g)() { return a < 0 || c ? : 0; }
void h(int *i) {
  long *j = &f;
  d = 0;
  for (; d != 34; d++) {
    b = -7;
    for (; b; b = b + 1) {
      e &= g() | 5;
      e |= 0 >= 0;
      *i |= d;
      *j = *i;
    }
  }
}
void main() {}</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>