[LLVMdev] adding switches to llvm-ld to disable certain optimizations.
Sanjiv Gupta
sanjiv.gupta at microchip.com
Wed Feb 10 08:57:43 PST 2010
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
More information about the llvm-dev
mailing list