[LLVMbugs] [Bug 3102] New: inliner: "Function not in callgraph!" when running -inline -inline -loop-extract-single -loop-extract-single -globaldce
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Nov 19 17:39:45 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3102
Summary: inliner: "Function not in callgraph!" when running -
inline -inline -loop-extract-single -loop-extract-single
-globaldce
Product: libraries
Version: 2.4
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Global Analyses
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sliedes at cc.hut.fi
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2228)
--> (http://llvm.org/bugs/attachment.cgi?id=2228)
Test case
Running
opt -inline -inline -loop-extract-single -loop-extract-single -globaldce
bugpoint-reduced-simplified.bc
on the attached bitcode causes an assertion failure with the error message
"Function not in callgraph!".
Architecture is amd64.
------------------------------------------------------------
$ opt bugpoint-reduced-simplified.bc -inline -inline -loop-extract-single
-loop-extract-single -globaldce
opt: /home/sliedes/llvm/src/llvm-2.4/include/llvm/Analysis/CallGraph.h:103:
llvm::CallGraphNode* llvm::CallGraph::operator[](const llvm::Function*):
Assertion `I != FunctionMap.end() && "Function not in callgraph!"' failed.
opt[0x7603af]
/lib/libc.so.6[0x7f668d97ff60]
/lib/libc.so.6(gsignal+0x35)[0x7f668d97fed5]
/lib/libc.so.6(abort+0x183)[0x7f668d9813f3]
/lib/libc.so.6(__assert_fail+0xe9)[0x7f668d978dc9]
opt(_ZN4llvm14InlineFunctionENS_8CallSiteEPNS_9CallGraphEPKNS_10TargetDataE+0xb61)[0x5c8a91]
opt(_ZN4llvm7Inliner8runOnSCCERKSt6vectorIPNS_13CallGraphNodeESaIS3_EE+0x965)[0x4bc375]
opt[0x613d75]
opt(_ZN4llvm13MPPassManager11runOnModuleERNS_6ModuleE+0xd0)[0x6ff3d0]
opt(_ZN4llvm15PassManagerImpl3runERNS_6ModuleE+0x86)[0x6ff686]
opt(main+0xa5f)[0x49035f]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f668d96c1a6]
opt(sinh+0x39)[0x485379]
Aborted
------------------------------------------------------------
--
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