[LLVMdev] Call DeadCodeElimination pass of LLVM

Nick Lewycky nicholas at mxc.ca
Wed Feb 1 00:03:23 PST 2012

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.


More information about the llvm-dev mailing list