<html>
    <head>
      <base href="http://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 --- - Inline + SROA appear to miscompile code with EH"
   href="http://llvm.org/bugs/show_bug.cgi?id=15555">15555</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Inline + SROA appear to miscompile code with EH
          </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>normal
          </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>wendling@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10210" name="attach_10210" title="File compiled with -O0">attachment 10210</a> <a href="attachment.cgi?id=10210&action=edit" title="File compiled with -O0">[details]</a></span>
File compiled with -O0

The attached .cpp file (O0.ll is that program compiled at `-O0') will abort
when you run it like this:

$ opt -inline -sroa O0.ll -o is.ll
$ llc -o is.s is.ll
$ clang++ is.s -o is
$ ./is
Abort trap: 6

The problem is that once the `thr' function is inlined into `run', the landing
pad that it would have jumped to is removed in a later pass. The call to `thr'
(`thr' is recursive) is changed from an `invoke' into a `call'. The next thing
to happen after the `call' is to execute the `abort'.</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>