diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-22 23:45:49 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-22 23:45:49 +0000 |
| commit | 240529892b5ab600b2f6f356cc2addeacdef0849 (patch) | |
| tree | ce5116bfe1b9ef8a76ccbeb6f80cea2cfdfe30df | |
| parent | a2b2cdc8138d243ac4a96c1ac583d936cc7d7f5b (diff) | |
| download | bcm5719-llvm-240529892b5ab600b2f6f356cc2addeacdef0849.tar.gz bcm5719-llvm-240529892b5ab600b2f6f356cc2addeacdef0849.zip | |
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.
llvm-svn: 256302
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index b6acea76dc3..31d7f156a70 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/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<Module> M) { |

