Skip to content

[LSR, linux kernel] llc -O1: Broken module found, compilation aborted! #9631

Closed
@edwintorok

Description

@edwintorok
Bugzilla Link 9259
Resolution FIXED
Resolved on Mar 01, 2011 19:34
Version trunk
OS Linux
Blocks #4440
Attachments testcase bitcode, preprocessed C source code for reference
CC @tkremenek,@sunfishcode

Extended Description

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 'bugpoint-reduced-simplified.bc'.
    
  2.  Running pass 'Module Verifier' on function '@dw2102_i2c_transfer'
    

Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions