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

Alexey Volkov avolkov.intel at gmail.com
Wed Oct 29 07:53:46 PDT 2014


Yes, this patch works for me.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141029/ac76e00b/attachment.html>


More information about the llvm-commits mailing list