[LLVMdev] adding switches to llvm-ld to disable certain optimizations.

Daniel Dunbar daniel at zuster.org
Wed Feb 10 00:17:37 PST 2010

On Tue, Feb 9, 2010 at 7:39 PM, Sanjiv Gupta <sanjiv.gupta at microchip.com> wrote:
> Hi,
> I need to add switches like -disable-mem2reg, disable-gvn to llvm-ld.
> Currently CreateStandardLTOPasses takes in only DisableInternalize and
> DisableInliner switches.
> Is modifying this API okay for these new switches, or is it doable in
> some other ways ?

I don't think this is appropriate for the standard passes API. If you
really care about tweaking the pass list, you should be making your
own (based on the standard pass list perhaps).

 - Daniel

> - Sanjiv
> _______________________________________________
> 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