<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 --- - wrong code produced by -structurizecfg"
   href="https://llvm.org/bugs/show_bug.cgi?id=26925">26925</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wrong code produced by -structurizecfg
          </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>chengniansun@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=16030" name="attach_16030" title="bug triggering bitcode program.">attachment 16030</a> <a href="attachment.cgi?id=16030&action=edit" title="bug triggering bitcode program.">[details]</a></span>
bug triggering bitcode program.

The attached bitcode program is miscompiled by the optimization pass
-structurizecfg.


$: clang-trunk -w small.bc ; ./a.out ; echo $?
0
$: opt-trunk -structurizecfg small.bc -o small-2.bc
$: clang-trunk -w small-2.bc ; timeout -s 9 10 ./a.out ; echo $?
Killed: 9
137
$:
$: clang-trunk -v
clang version 3.9.0 (trunk 263269)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
InstalledDir: /usr/local/bin
$: opt-trunk -version
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
  LLVM version 3.9.0svn
  Optimized build with assertions.
  Built Mar 11 2016 (10:29:13).
  Default target: x86_64-apple-darwin15.2.0
  Host CPU: haswell</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>