[LLVMdev] adding switches to llvm-ld to disable certain optimizations.
Evan Cheng
evan.cheng at apple.com
Thu Feb 11 16:43:45 PST 2010
Rather than adding flags, why not add your own custom routine that populate the pass manager. You don't have to use CreateStandardLTOPasses, nor do you have to use the standard llvm-ld.
Evan
On Feb 10, 2010, at 8:57 AM, Sanjiv Gupta wrote:
> 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
>
>
> _______________________________________________
> 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