[LLVMbugs] [Bug 7052] New: Global Value Numbering assertion failure: "bitwidth too small"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 5 08:06:39 PDT 2010


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

           Summary: Global Value Numbering assertion failure: "bitwidth
                    too small"
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matti.niemenmaa+llvmbugs at iki.fi
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4829)
 --> (http://llvm.org/bugs/attachment.cgi?id=4829)
test case

The Global Value Numbering pass asserts on the attached bitcode file, using
LLVM r103084:

$ opt -gvn bugpoint-reduced-simplified.bc >/dev/null
opt: src/llvm/trunk/lib/VMCore/Type.cpp:806: static const llvm::IntegerType*
llvm::IntegerType::get(llvm::LLVMContext&, unsigned int): Assertion `NumBits >=
MIN_INT_BITS && "bitwidth too small"' failed.
Stack dump:
0.    Program arguments: bin/opt -gvn 
1.    Running pass 'Function Pass Manager' on module '<stdin>'.
2.    Running pass 'Global Value Numbering' on function '@main'


In 2.7 it does one better and segfaults:

$ opt -gvn bugpoint-reduced-simplified.bc >/dev/null
0  opt             0x000000000088102f
1  opt             0x000000000088156d
2  libpthread.so.0 0x00007fe59349af20
3  opt             0x00000000004fe79f
4  opt             0x0000000000503180
5  opt             0x0000000000503918
6  opt             0x000000000080e366
llvm::FPPassManager::runOnFunction(llvm::Function&) + 502
7  opt             0x000000000080e43b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
8  opt             0x000000000080dfd1
llvm::MPPassManager::runOnModule(llvm::Module&) + 369
9  opt             0x000000000080e10f llvm::PassManagerImpl::run(llvm::Module&)
+ 111
10 opt             0x00000000004a4653 main + 2003
11 libc.so.6       0x00007fe5927a7b1d __libc_start_main + 253
12 opt             0x0000000000499d99
Stack dump:
0.    Program arguments: opt -gvn foo.bc 
1.    Running pass 'Function Pass Manager' on module 'foo.bc'.
2.    Running pass 'Global Value Numbering' on function '@main'

-- 
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