<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 - opt -instcombine -disable-basic-aa -available-load-scan-limit=0 failing with "LLVM ERROR: Instruction Combining seems stuck in an infinite loop after 100 iterations.""
   href="https://bugs.llvm.org/show_bug.cgi?id=47361">47361</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>opt -instcombine -disable-basic-aa -available-load-scan-limit=0 failing with "LLVM ERROR: Instruction Combining seems stuck in an infinite loop after 100 iterations."
          </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>mikael.holmen@ericsson.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=23905" name="attach_23905" title="bbi-46639.ll reproducer">attachment 23905</a> <a href="attachment.cgi?id=23905&action=edit" title="bbi-46639.ll reproducer">[details]</a></span>
bbi-46639.ll reproducer

Reproduce with:
 opt -instcombine -disable-basic-aa -available-load-scan-limit=0 -S -o -
bbi-46639.ll

Result:
 LLVM ERROR: Instruction Combining seems stuck in an infinite loop after 100
iterations.

It passes if we just raise the number of allowed iterations to 101 with
-instcombine-infinite-loop-threshold=101

Perhaps the many iterations is just a result of making life hard for
instcombine with -disable-basic-aa -available-load-scan-limit=0, I don't know.</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>