[llvm] r220345 - LTO: respect command-line options that disable vectorization.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Oct 29 17:51:34 PDT 2014


On 29 October 2014 07:53, Alexey Volkov <avolkov.intel at gmail.com> wrote:
> Yes, this patch works for me.
>

committed.

> 2014-10-29 17:03 GMT+03:00 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:
>>
>> On 29 October 2014 06:32, Alexey Volkov <avolkov.intel at gmail.com> wrote:
>> > I use clang with -flto option.
>> > In this case there is no libLTO is used but lto gold plugin instead:
>> > -plugin
>> > LLVMgold.so
>> > I tried to stop in debugger inside a plugin:
>> > 447       PM.add(createLoopVectorizePass(true, LoopVectorize));
>> > (gdb) p LoopVectorize
>> > $1 = false
>> >
>> > I also failed to create breakpoint in lib/LTO/LTOCodeGenerator.cpp where
>> > DisableVectorization is set.
>> > It seems that this file is not a part of gold plugin.
>>
>> That is correct. The gold plugin would take options from -plugin-opt=
>> options passed to the linker.
>>
>> Can you try the attached patch? If it works for you I can try to write
>> a testcase and commit it.
>>
>> Cheers,
>> Rafael
>
>
>
>
> --
> Alexey Volkov
> Intel Corporation




More information about the llvm-commits mailing list