From 80506186e9f46b746ebe889304286d8755ecaa1d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 22 Dec 2015 23:45:49 +0000 Subject: [PATCH] Disable use list order on the gold plugin. 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256302 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gold/gold-plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index b6acea76dc3..31d7f156a70 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -756,7 +756,7 @@ static void saveBCFile(StringRef Path, Module &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 M) { -- 2.34.1