Török Edwin
2008-Oct-28 17:56 UTC
[LLVMdev] Requiring a ModulePass to be run from a FunctionPass
Hi, I have a FunctionPass that requires a ModulePass using addRequiredById(). When I start opt it infloops somewhere in PMDataManager::findAnalysisPass. Should I open a bug, or is this a known issue (i.e. I am doing something wrong)? Is there a workaround? My modulepass just assigns unique numbers to basicblocks (like StableBasicBlockNumbering, but unique per Module) I could do that with a functionpass too, but they are not allowed to retain state, right? Best regards, --Edwin
Devang Patel
2008-Oct-31 01:11 UTC
[LLVMdev] Requiring a ModulePass to be run from a FunctionPass
On Oct 28, 2008, at 10:56 AM, Török Edwin wrote:> Hi, > > I have a FunctionPass that requires a ModulePass using > addRequiredById(). > When I start opt it infloops somewhere in > PMDataManager::findAnalysisPass. > > Should I open a bug, or is this a known issue (i.e. I am doing > something > wrong)? Is there a workaround?Yes, please open a bug with code snippet of your FunctionPass and ModulePass. Thanks! - Devang
Seemingly Similar Threads
- [LLVMdev] ModulePass that requires FunctionPass
- Slow IR compilation/JIT, profiling points to LLVM?
- Slow IR compilation/JIT, profiling points to LLVM?
- [LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass
- [LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass