<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 --- - optimization passes created malformed bitcode"
   href="http://llvm.org/bugs/show_bug.cgi?id=20210">20210</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>optimization passes created malformed bitcode
          </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>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>janne-llvm@jannau.net
          </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=12738" name="attach_12738" title="reduced c sources">attachment 12738</a> <a href="attachment.cgi?id=12738&action=edit" title="reduced c sources">[details]</a></span>
reduced c sources

clang -O0 of the attached test_zext_fail.c creates on x86_64 attached
test_zext_fail.bc using llvm trunk r212318. Following set of optimization
passes create malformed bitcode:

opt -S test_zext_fail.bc -sroa -early-cse -simplifycfg -instcombine
-simplifycfg
Instruction does not dominate all uses!
  %conv7 = zext i8 %p1 to i32
  call void @fn2(i32 %conv7) #2
LLVM ERROR: Broken function found, compilation aborted!

The problem is reporduceable with the aarch64 backend.</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>