[LLVMbugs] [Bug 9259] New: llc -O1: Broken module found, compilation aborted!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 19 03:29:29 PST 2011


           Summary: llc -O1: Broken module found, compilation aborted!
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=6182)
 --> (http://llvm.org/bugs/attachment.cgi?id=6182)
testcase bitcode

While compiling dw2102.c from the Linux kernel:

opt -verify says the bitcode is good, and llc -O0 works too:
$ opt -verify bugpoint-reduced-simplified.bc
$ llc -O0 bugpoint-reduced-simplified.bc

llc -O1 breaks the bitcode though:
$ llc -O1 bugpoint-reduced-simplified.bc

Instruction does not dominate all uses!
  %tmp3 = add i64 %indvar, %tmp2
  %tmp4 = trunc i64 %tmp3 to i32
Instruction does not dominate all uses!
  %tmp4 = trunc i64 %tmp3 to i32
  %conv29 = trunc i32 %tmp4 to i16, !dbg !7709
Instruction does not dominate all uses!
  %conv29 = trunc i32 %tmp4 to i16, !dbg !7709
  %call34 = call fastcc i32 @dw210x_op_rw(%struct.usb_device* undef, i8 zeroext
-75, i16 zeroext %conv29, i16 zeroext 0, i8* undef, i16 zeroext 2, i32 0)
optsize noredzone, !dbg !7712
Broken module found, compilation aborted!
0  llc             0x0000000000b9a4cf
1  llc             0x0000000000b9c732
2  libpthread.so.0 0x0000003f36a0ef60
3  libc.so.6       0x0000003f35e32165 gsignal + 53
4  libc.so.6       0x0000003f35e34f70 abort + 384
5  llc             0x0000000000b101eb
6  llc             0x0000000000ae9d0d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 557
7  llc             0x0000000000ae9e0b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
8  llc             0x0000000000ae9897
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
9  llc             0x0000000000ae9a17 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
10 llc             0x000000000050523d main + 3885
11 libc.so.6       0x0000003f35e1ec4d __libc_start_main + 253
12 llc             0x00000000005031c9
Stack dump:
0.      Program arguments: llc bugpoint-reduced-simplified.bc -O1 
1.      Running pass 'Function Pass Manager' on module
2.      Running pass 'Module Verifier' on function '@dw2102_i2c_transfer'

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list