<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 - No equivalent for "instcombine-infinite-loop-threshold" in the C API"
   href="https://bugs.llvm.org/show_bug.cgi?id=52578">52578</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>No equivalent for "instcombine-infinite-loop-threshold" in the C API
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>b2.temp@gmx.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The C API does not allow to control the threshold value that was added with
<a href="https://reviews.llvm.org/D71673">https://reviews.llvm.org/D71673</a>. For example in pass_manager_builder.h it would
be nice to have `LLVMPassManagerBuilderSetInstCombineThresh`.

Then, the default value for the default set of passes, e.g the set that is
initialized when we use `LLVMPassManagerBuilderPopulateFunctionPassManager`, is
not equal to the value used by opt and infinite loops are still possible.

The request here is to have at least a default value that protect against those
infinite loops.

The consequence is that compilers that use the C API have to optimize by
invoking opt.</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>