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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to