[LLVMbugs] [Bug 7835] New: GVN Crashes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 6 02:12:30 PDT 2010


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

           Summary: GVN Crashes
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: e_mc_h2 at web.de
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5338)
 --> (http://llvm.org/bugs/attachment.cgi?id=5338)
Test-case to trigger crash

I hit the attached testcase (as reduced by bugpoint) that causes global value
numbering to crash:

GVN iteration: 0
opt: /home/ness/media/src/llvm-fairy/lib/Transforms/Scalar/GVN.cpp:627:
uint32_t<unnamed>::ValueTable::lookup(llvm::Value*) const: Assertion `VI !=
valueNumbering.end() && "Value not numbered?"' failed.
0  opt             0x0000000000bee6fe
1  opt             0x0000000000beec17
2  libpthread.so.0 0x00007fb22c5e2f60
3  libc.so.6       0x00007fb22b8f5175 gsignal + 53
4  libc.so.6       0x00007fb22b8f7f80 abort + 384
5  libc.so.6       0x00007fb22b8ee2b1 __assert_fail + 241
6  opt             0x000000000085e78d
7  opt             0x000000000085ed25
8  opt             0x0000000000862a19
9  opt             0x0000000000b691a9
llvm::FPPassManager::runOnFunction(llvm::Function&) + 345
10 opt             0x0000000000b6937f
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
11 opt             0x0000000000b68e6f
llvm::MPPassManager::runOnModule(llvm::Module&) + 381
12 opt             0x0000000000b6a60b llvm::PassManagerImpl::run(llvm::Module&)
+ 111
13 opt             0x0000000000b6a66d llvm::PassManager::run(llvm::Module&) +
33
14 opt             0x00000000007d3750 main + 3437
15 libc.so.6       0x00007fb22b8e1c4d __libc_start_main + 253
16 opt             0x00000000007c5e19
Stack dump:
0.      Program arguments: opt testcase.ll -gvn -debug 
1.      Running pass 'Function Pass Manager' on module 'testcase.ll'.
2.      Running pass 'Global Value Numbering' on function '@cell_alloc'
zsh: abort      opt testcase.ll -gvn -debug

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