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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Oct 29 07:03:41 PDT 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141029/bf97518a/attachment.obj>


More information about the llvm-commits mailing list