[LLVMbugs] [Bug 7637] New: Adding a GVN pass via LLVMAddGVNPass triggers an assert.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 13 17:43:02 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7637
Summary: Adding a GVN pass via LLVMAddGVNPass triggers an
assert.
Product: new-bugs
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: blood.of.life at gmail.com
CC: llvmbugs at cs.uiuc.edu
(Apologies for using D here, I can't get C and LLVM playing nicely.)
import llvm.c.Core;
import llvm.c.transforms.Scalar;
void main()
{
LLVMModuleRef _module = LLVMModuleCreateWithNameInContext("module",
LLVMGetGlobalContext());
LLVMPassManagerRef fpm = LLVMCreateFunctionPassManagerForModule(_module);
LLVMAddInstructionCombiningPass(fpm); /* Works. */
LLVMAddGVNPass(fpm); /* Triggers an assert. */
}
Attempting to run the executable results in this:
a.out: /home/bernard/src/llvm-2.7/include/llvm/PassAnalysisSupport.h:53:
llvm::AnalysisUsage& llvm::AnalysisUsage::addRequiredID(const llvm::PassInfo*):
Assertion `ID && "Pass class not registered!"' failed.
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