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 | 7de73e56a40f5c2746d94ccfa189736574c2cd8e (patch) | |
tree | 74918790e106144ae070c888580c593873533d45 /llvm/lib/LTO | |
parent | 236787838caadf5ecc68fb52ca718fa559dff261 (diff) | |
download | bcm5719-llvm-7de73e56a40f5c2746d94ccfa189736574c2cd8e.tar.gz bcm5719-llvm-7de73e56a40f5c2746d94ccfa189736574c2cd8e.zip |
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.
llvm-svn: 247730
Diffstat (limited to 'llvm/lib/LTO')
-rw-r--r-- | llvm/lib/LTO/LTOCodeGenerator.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp index 8dcc53c8033..98266c32d90 100644 --- a/llvm/lib/LTO/LTOCodeGenerator.cpp +++ b/llvm/lib/LTO/LTOCodeGenerator.cpp @@ -265,24 +265,20 @@ LTOCodeGenerator::compileOptimized(std::string &ErrMsg) { return std::move(*BufferOrErr); } -bool LTOCodeGenerator::compile_to_file(const char **Name, bool DisableVerify, - bool DisableInline, +bool LTOCodeGenerator::compile_to_file(const char **Name, bool DisableInline, bool DisableGVNLoadPRE, bool DisableVectorization, std::string &ErrMsg) { - if (!optimize(DisableVerify, DisableInline, DisableGVNLoadPRE, - DisableVectorization, ErrMsg)) + if (!optimize(DisableInline, DisableGVNLoadPRE, DisableVectorization, ErrMsg)) return false; return compileOptimizedToFile(Name, ErrMsg); } std::unique_ptr<MemoryBuffer> -LTOCodeGenerator::compile(bool DisableVerify, bool DisableInline, - bool DisableGVNLoadPRE, bool DisableVectorization, - std::string &ErrMsg) { - if (!optimize(DisableVerify, DisableInline, DisableGVNLoadPRE, - DisableVectorization, ErrMsg)) +LTOCodeGenerator::compile(bool DisableInline, bool DisableGVNLoadPRE, + bool DisableVectorization, std::string &ErrMsg) { + if (!optimize(DisableInline, DisableGVNLoadPRE, DisableVectorization, ErrMsg)) return nullptr; return compileOptimized(ErrMsg); @@ -463,8 +459,7 @@ void LTOCodeGenerator::applyScopeRestrictions() { } /// Optimize merged modules using various IPO passes -bool LTOCodeGenerator::optimize(bool DisableVerify, bool DisableInline, - bool DisableGVNLoadPRE, +bool LTOCodeGenerator::optimize(bool DisableInline, bool DisableGVNLoadPRE, bool DisableVectorization, std::string &ErrMsg) { if (!this->determineTarget(ErrMsg)) @@ -491,8 +486,8 @@ bool LTOCodeGenerator::optimize(bool DisableVerify, bool DisableInline, PMB.Inliner = createFunctionInliningPass(); PMB.LibraryInfo = new TargetLibraryInfoImpl(TargetTriple); PMB.OptLevel = OptLevel; - PMB.VerifyInput = !DisableVerify; - PMB.VerifyOutput = !DisableVerify; + PMB.VerifyInput = true; + PMB.VerifyOutput = true; PMB.populateLTOPassManager(passes); |