diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-09-15 22:47:38 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-09-15 22:47:38 +0000 |
commit | c567bd6ca294236dc93121eddeb01c1ddca39c73 (patch) | |
tree | 7b63a4a0ab5b38c3dd0697184c8a61f6940d8045 /tools/lto | |
parent | b0d872aecec7dc6ed85aa588e753389afd001390 (diff) |
Revert "LTO: Disable extra verify runs in release builds"
This temporarily reverts commit r247729, as it caused lld build
failures. I'll recommit once I have an lld patch ready-to-go.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 62675081464..8f62929b326 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -43,16 +43,6 @@ static cl::opt<bool> DisableLTOVectorization("disable-lto-vectorization", cl::init(false), cl::desc("Do not run loop or slp vectorization during LTO")); -#ifdef NDEBUG -static bool VerifyByDefault = false; -#else -static bool VerifyByDefault = true; -#endif - -static cl::opt<bool> DisableVerify( - "disable-llvm-verifier", cl::init(!VerifyByDefault), - cl::desc("Don't run the LLVM verifier during the optimization pipeline")); - // Holds most recent error string. // *** Not thread safe *** static std::string sLastErrorString; @@ -331,9 +321,8 @@ bool lto_codegen_write_merged_modules(lto_code_gen_t cg, const char *path) { const void *lto_codegen_compile(lto_code_gen_t cg, size_t *length) { maybeParseOptions(cg); LibLTOCodeGenerator *CG = unwrap(cg); - CG->NativeObjectFile = - CG->compile(DisableVerify, DisableInline, DisableGVNLoadPRE, - DisableLTOVectorization, sLastErrorString); + CG->NativeObjectFile = CG->compile(DisableInline, DisableGVNLoadPRE, + DisableLTOVectorization, sLastErrorString); if (!CG->NativeObjectFile) return nullptr; *length = CG->NativeObjectFile->getBufferSize(); @@ -342,8 +331,9 @@ const void *lto_codegen_compile(lto_code_gen_t cg, size_t *length) { bool lto_codegen_optimize(lto_code_gen_t cg) { maybeParseOptions(cg); - return !unwrap(cg)->optimize(DisableVerify, DisableInline, DisableGVNLoadPRE, - DisableLTOVectorization, sLastErrorString); + return !unwrap(cg)->optimize(DisableInline, + DisableGVNLoadPRE, DisableLTOVectorization, + sLastErrorString); } const void *lto_codegen_compile_optimized(lto_code_gen_t cg, size_t *length) { @@ -359,7 +349,7 @@ const void *lto_codegen_compile_optimized(lto_code_gen_t cg, size_t *length) { bool lto_codegen_compile_to_file(lto_code_gen_t cg, const char **name) { maybeParseOptions(cg); return !unwrap(cg)->compile_to_file( - name, DisableVerify, DisableInline, DisableGVNLoadPRE, + name, DisableInline, DisableGVNLoadPRE, DisableLTOVectorization, sLastErrorString); } |