Sanjiv Gupta
2010-Feb-10 03:39 UTC
[LLVMdev] adding switches to llvm-ld to disable certain optimizations.
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 ? - Sanjiv
Chris Lattner
2010-Feb-10 05:58 UTC
[LLVMdev] adding switches to llvm-ld to disable certain optimizations.
On Feb 9, 2010, at 7:39 PM, Sanjiv Gupta 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 ?Why do you want this? -Chris
Daniel Dunbar
2010-Feb-10 08:17 UTC
[LLVMdev] adding switches to llvm-ld to disable certain optimizations.
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 >
Sanjiv Gupta
2010-Feb-10 16:57 UTC
[LLVMdev] adding switches to llvm-ld to disable certain optimizations.
Chris Lattner wrote:> On Feb 9, 2010, at 7:39 PM, Sanjiv Gupta 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 ? >> > > Why do you want this? > > -Chris >Mem2Reg isn't really useful for a single register machine as ours. More often than not, it causes extra spilling. - Sanjiv
Maybe Matching Threads
- [LLVMdev] adding switches to llvm-ld to disable certain optimizations.
- [LLVMdev] adding switches to llvm-ld to disable certain optimizations.
- [LLVMdev] adding switches to llvm-ld to disable certain optimizations.
- [LLVMdev] adding switches to llvm-ld to disable certain optimizations.
- [LLVMdev] adding switches to llvm-ld to disable certain optimizations.