[PATCH] Add -disable-opt option to LTO

Cristiano Giuffrida c.giuffrida at vu.nl
Thu Feb 28 06:14:24 PST 2013


Thank you!

Cristiano

On Thu, Feb 28, 2013 at 3:11 PM, Bill Wendling <wendling at apple.com> wrote:
> Added here: r176257. Thanks!
>
> -bw
>
> On Feb 28, 2013, at 4:08 AM, Cristiano Giuffrida <c.giuffrida at vu.nl> wrote:
>
>> Thanks. Yes, I think having a uniform interface across tools (opt,
>> libLTO, etc.) to selectively enable/disable individual passes (or
>> "macroconfigurations" like opt's -std-compile-opts) would be really
>> useful for a variety of reasons. But I think this patch is a good
>> start in that direction (if anything, you can use the gold plugin to
>> do optimization-free linking and later use, say, opt to run the passes
>> you want).
>>
>> Any chance somebody can commit this patch in time for the upcoming 3.3 release?
>>
>> Thanks,
>>
>> Cristiano
>>
>> On Wed, Feb 27, 2013 at 8:17 PM, Bill Wendling <wendling at apple.com> wrote:
>>> This patch LGTM. What would be really nice is a way to disable individual passes, but that's beyond the scope of this patch.
>>>
>>> -bw
>>>
>>> On Feb 26, 2013, at 6:13 PM, Cristiano Giuffrida <giuffrida at cs.vu.nl> wrote:
>>>
>>>> Hi,
>>>> the attached patch adds the -disable-opt option to LTO. The effect is
>>>> self-explanatory. I think this should be considered for merging
>>>> (hopefully for the upcoming 3.3 release) for the following reasons:
>>>>
>>>> - Consistency with opt (which supports the same option with the same
>>>> meaning and description).
>>>> - Debugging gold plugin-based linking without optimizations getting in the way.
>>>> - Debugging programs linked with the gold plugin while preserving the
>>>> original debug info.
>>>> - Fine-grained control over LTO passes using the gold plugin in
>>>> combination with opt (or clang/dragonegg).
>>>>
>>>> Thanks,
>>>>
>>>> Cristiano
>>>> <disable-opt.patch>_______________________________________________
>>>> llvm-commits mailing list
>>>> llvm-commits at cs.uiuc.edu
>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>>
>



More information about the llvm-commits mailing list