[LLVMbugs] [Bug 8624] New: Possible llvm problem when ModulePass requires FunctionPasses

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 16 00:10:23 PST 2010


           Summary: Possible llvm problem when ModulePass requires
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: zhousheng00 at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5786)
 --> (http://llvm.org/bugs/attachment.cgi?id=5786)
Experimental Pass

Consider a case when a module pass requires two function passes fp1, fp2. When
getAnalysis<fp1>() is called, both fp1 and fp2 are executed. That is fine. In
the worst case, we just spend lots of time running the analysis passes many

But it should not crash. In the experimental pass, command "opt" got an

The experimental pass is attached. Using the following command:

$ opt -load LLVMTestPass.so  -mpass x.bc -o y.bc


MyFPass running on __cxx_global_var_init
MyFPass2 running on __cxx_global_var_init
AnalysisType& llvm::Pass::getAnalysisID(const void*, llvm::Function&) [with
AnalysisType = MyFPass]: Assertion `ResultPass && "Unable to find requested
analysis info"' failed.

Seems the function pass fp1 and fp2 were correctly invoked by the module pass,
but why it dumped the assertion at last.

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