diff options
author | Jan Voung <jvoung@chromium.org> | 2013-08-07 09:47:51 -0700 |
---|---|---|
committer | Jan Voung <jvoung@chromium.org> | 2013-08-07 09:47:51 -0700 |
commit | 0791551c99b041c83413ff78c29cded7730cf601 (patch) | |
tree | 8de98a6038137851982cac82d15e8b49b2be4684 /include | |
parent | 77f169c9afeaf7384360ff6d56b73cc4d3200f5b (diff) |
Revert localmod for bitcode linking speedup (different fix upstream).
Original localmod: https://codereview.chromium.org/10808021/
which fixes some quadratic behavior.
Xiaofei Wan fixed the quadratic behavior upstream differently, via
a series of commits around:
http://llvm.org/viewvc/llvm-project?view=revision&revision=181104
and it is actually faster:
~7 seconds to link pnacl-llc w/ just the upstream fix
~11 seconds to link with localmod
(used to be ~120 seconds w/ quadratic behavior)
BUG=http://code.google.com/p/nativeclient/issues/detail?id=2883
TEST= trybots: http://chromegw.corp.google.com/i/tryserver.nacl/builders/nacl-toolchain-linux-pnacl-x86_64/builds/784
R=eliben@chromium.org
Review URL: https://codereview.chromium.org/22509002
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm-c/lto.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index ce3546bd49..078502b3e6 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -259,27 +259,6 @@ lto_codegen_dispose(lto_code_gen_t); extern bool lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); -/* @LOCALMOD-BEGIN */ -/** - * Add an object module to the set of modules for which code will be generated. - * This does not merge the module immediately, unlike lto_codegen_add_module. - * It will hold onto the module until the user calls - * lto_codegen_link_gathered_modules_and_dispose(). The lto_module_t - * should now by owned by the lto_code_gen_t, and will be freed when - * the link is done. - */ -extern void -lto_codegen_gather_module_for_link(lto_code_gen_t cg, lto_module_t mod); - -/** - * Merges modules that are part of the set of modules gathered by - * lto_codegen_gather_module_for_link(), and the also destroys the modules - * as lto_module_dispose() would. - */ -extern bool -lto_codegen_link_gathered_modules_and_dispose(lto_code_gen_t cg); -/* @LOCALMOD-END*/ - /** * Sets if debug info should be generated. * Returns true on error (check lto_get_error_message() for details). |