[LLVMbugs] [Bug 20210] New: optimization passes created malformed bitcode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 5 02:19:32 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20210

            Bug ID: 20210
           Summary: optimization passes created malformed bitcode
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: janne-llvm at jannau.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12738
  --> http://llvm.org/bugs/attachment.cgi?id=12738&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140705/c3a960f6/attachment.html>


More information about the llvm-bugs mailing list