[LLVMbugs] [Bug 2033] New: corrupted CallGraph

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 13 22:01:00 PST 2008


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

           Summary: corrupted CallGraph
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


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

Testcase attached.

$ opt -basiccg -instcombine -inline b.bc

opt: CallGraph.cpp:288: void
llvm::CallGraphNode::removeCallEdgeTo(llvm::CallGraphNode*): Assertion `i &&
"Cannot find callee to remove!"' failed.
[New Thread 4157462208 (LWP 22976)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 4157462208 (LWP 22976)]
0xffffe405 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe405 in __kernel_vsyscall ()
#1  0xf7d09f15 in raise () from /lib/i686/cmov/libc.so.6
#2  0xf7d0b891 in abort () from /lib/i686/cmov/libc.so.6
#3  0xf7d030ee in __assert_fail () from /lib/i686/cmov/libc.so.6
#4  0x08499d8d in llvm::CallGraphNode::removeCallEdgeTo (this=0x86ebd60, 
    Callee=0x86e9228) at CallGraph.cpp:288
#5  0x0845320f in UpdateCallGraphAfterInlining (Caller=0x86e9e70, 
    Callee=0x86ebe78, FirstNewBlock=
      {<bidirectional_iterator<llvm::BasicBlock,int>> =
{<std::iterator<std::bidirectional_iterator_tag,llvm::BasicBlock,int,llvm::BasicBlock*,llvm::BasicBlock&>>
= {<No data fields>}, <No data fields>}, NodePtr = 0x86e9348}, 
    ValueMap=@0xfff18080, CG=@0x86e93d0) at InlineFunction.cpp:154
#6  0x08454237 in llvm::InlineFunction (CS=@0xfff18280, CG=0x86e93d0, 
    TD=0x86e9b00) at InlineFunction.cpp:306
#7  0x0832c069 in InlineCallIfPossible (CS=@0xfff18324, CG=@0x86e93d0, 
    SCCFunctions=@0xfff182e0, TD=@0x86e9b00) at Inliner.cpp:59
#8  0x0832c90c in llvm::Inliner::runOnSCC (this=0x86e9098, SCC=@0xfff1841c)
    at Inliner.cpp:151
#9  0x0849cb48 in CGPassManager::runOnModule (this=0x86e9128, M=@0x86e9aa8)
    at CallGraphSCCPass.cpp:100
#10 0x0858b258 in llvm::MPPassManager::runOnModule (this=0x86ebfc0, 
    M=@0x86e9aa8) at PassManager.cpp:1254
#11 0x0858b410 in llvm::PassManagerImpl::run (this=0x86ebee8, M=@0x86e9aa8)
    at PassManager.cpp:1328
#12 0x0858b462 in llvm::PassManager::run (this=0xfff185b8, M=@0x86e9aa8)
    at PassManager.cpp:1360
#13 0x082edf87 in main (argc=5, argv=0xfff187b4) at opt.cpp:430


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