<div dir="ltr">Yes, this patch works for me.</div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-29 17:03 GMT+03:00 Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 29 October 2014 06:32, Alexey Volkov <<a href="mailto:avolkov.intel@gmail.com">avolkov.intel@gmail.com</a>> wrote:<br>
> I use clang with -flto option.<br>
> In this case there is no libLTO is used but lto gold plugin instead: -plugin<br>
> LLVMgold.so<br>
> I tried to stop in debugger inside a plugin:<br>
> 447       PM.add(createLoopVectorizePass(true, LoopVectorize));<br>
> (gdb) p LoopVectorize<br>
> $1 = false<br>
><br>
> I also failed to create breakpoint in lib/LTO/LTOCodeGenerator.cpp where<br>
> DisableVectorization is set.<br>
> It seems that this file is not a part of gold plugin.<br>
<br>
</span>That is correct. The gold plugin would take options from -plugin-opt=<br>
options passed to the linker.<br>
<br>
Can you try the attached patch? If it works for you I can try to write<br>
a testcase and commit it.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Alexey Volkov<div>Intel Corporation</div></div>
</div>