<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 --- - infinite loop (?) in -simplifycfg"
   href="https://llvm.org/bugs/show_bug.cgi?id=30292">30292</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>infinite loop (?) in -simplifycfg
          </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>normal
          </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>willdtz@gmail.com
          </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>Created <span class=""><a href="attachment.cgi?id=17215" name="attach_17215" title="bitcode demonstrating bug, from libevent">attachment 17215</a> <a href="attachment.cgi?id=17215&action=edit" title="bitcode demonstrating bug, from libevent">[details]</a></span>
bitcode demonstrating bug, from libevent

Encountered this starting about a week ago on trunk, occurred when building
libevent.

With the attached bc file:

$ opt event.bc -simplifycfg -disable-output -debug-pass=Executions
...
[2016-09-06 09:38:06.956737000] 0x3838f10     Executing Pass 'Simplify the CFG'
on Function 'event_base_loop'...


And it proceeds to never complete this pass (hours+).

I'm not sure what the best way to reduce a timing-related bug is, apologies for
the non-reduced test-case.  Even getting this bitcode was more trouble than I
expected (tips welcome, is there a better way?): I ended up using
-print-before=simplifycfg and kludging the function printing pass to dump the
entire module instead.

LMK if you have any questions or problems reproducing on trunk, thanks!</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>