Hi, Please let me know how to follow my pass in LLVM by Dead Code Elimination pass of LLVM. getAnalysisUsage(...) only allows me to run passes before my pass. I want to run Dead Code Elimination pass after my pass. Regards, Adarsh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120201/a4373d31/attachment.html>
Adarsh HV wrote:> Hi, > Please let me know how to follow my pass in LLVM by Dead Code > Elimination pass of LLVM. getAnalysisUsage(...) only allows me to run > passes before my pass. I want to run Dead Code Elimination pass after my > pass.Your pass does not control that; where the PassManager is created, insert your pass, then insert the DCE pass. Nick
Adarsh, I believe you want to look at lib/Transforms/IPO/PassManagerBuilder.cpp Chad On Feb 1, 2012, at 12:03 AM, Nick Lewycky wrote:> Adarsh HV wrote: >> Hi, >> Please let me know how to follow my pass in LLVM by Dead Code >> Elimination pass of LLVM. getAnalysisUsage(...) only allows me to run >> passes before my pass. I want to run Dead Code Elimination pass after my >> pass. > > Your pass does not control that; where the PassManager is created, > insert your pass, then insert the DCE pass. > > Nick > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reasonably Related Threads
- [LLVMdev] Call DeadCodeElimination pass of LLVM
- [LLVMdev] Incorrect result in LLVM Alias Analysis
- Preservation of CallGraph (by BasicBlockPass, FunctionPass)
- [LLVMdev] Incorrect result in LLVM Alias Analysis
- Preservation of CallGraph (by BasicBlockPass, FunctionPass)