[llvm] r256302 - Disable use list order on the gold plugin.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 14:06:21 PST 2016


On Tue, Dec 22, 2015 at 3:45 PM, Rafael Espindola via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: rafael
> Date: Tue Dec 22 17:45:49 2015
> New Revision: 256302
>
> URL: http://llvm.org/viewvc/llvm-project?rev=256302&view=rev
> Log:
> Disable use list order on the gold plugin.
>

Duncan - I thought in the end the use-list preservetion ended up as opt-in
and only the LLVM dev tools (llc, opt, etc) were opting in to use-list
preservation. Did I misunderstand/mis-recall how that all went? Did this
case just get missed? Are there any other cases we should double check?


>
> It turns out that his is *really* slow. With this change the link of
> clang with plugin-opt=emit-llvm goes from 41 to 26 seconds.
>
> We can add an option to enable it again if needed.
>
> Modified:
>     llvm/trunk/tools/gold/gold-plugin.cpp
>
> Modified: llvm/trunk/tools/gold/gold-plugin.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=256302&r1=256301&r2=256302&view=diff
>
> ==============================================================================
> --- llvm/trunk/tools/gold/gold-plugin.cpp (original)
> +++ llvm/trunk/tools/gold/gold-plugin.cpp Tue Dec 22 17:45:49 2015
> @@ -756,7 +756,7 @@ static void saveBCFile(StringRef Path, M
>    raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::F_None);
>    if (EC)
>      message(LDPL_FATAL, "Failed to write the output file.");
> -  WriteBitcodeToFile(&M, OS, /* ShouldPreserveUseListOrder */ true);
> +  WriteBitcodeToFile(&M, OS, /* ShouldPreserveUseListOrder */ false);
>  }
>
>  static void codegen(std::unique_ptr<Module> M) {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160112/312690bb/attachment.html>


More information about the llvm-commits mailing list