[LLVMdev] Call DeadCodeElimination pass of LLVM

Chad Rosier mcrosier at apple.com
Wed Feb 1 01:03:19 PST 2012


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




More information about the llvm-dev mailing list