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/tools/llvm-lto/llvm-lto.cpp | |
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/tools/llvm-lto/llvm-lto.cpp')
-rw-r--r-- | llvm/tools/llvm-lto/llvm-lto.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp index 50680ccb8ab..cdb1bcaa6bc 100644 --- a/llvm/tools/llvm-lto/llvm-lto.cpp +++ b/llvm/tools/llvm-lto/llvm-lto.cpp @@ -36,10 +36,6 @@ OptLevel("O", cl::ZeroOrMore, cl::init('2')); -static cl::opt<bool> DisableVerify( - "disable-verify", cl::init(false), - cl::desc("Do not run the verifier during the optimization pipeline")); - static cl::opt<bool> DisableInline("disable-inlining", cl::init(false), cl::desc("Do not run the inliner pass")); @@ -252,7 +248,7 @@ int main(int argc, char **argv) { if (!OutputFilename.empty()) { std::string ErrorInfo; - if (!CodeGen.optimize(DisableVerify, DisableInline, DisableGVNLoadPRE, + if (!CodeGen.optimize(DisableInline, DisableGVNLoadPRE, DisableLTOVectorization, ErrorInfo)) { errs() << argv[0] << ": error optimizing the code: " << ErrorInfo << "\n"; return 1; @@ -289,7 +285,7 @@ int main(int argc, char **argv) { std::string ErrorInfo; const char *OutputName = nullptr; - if (!CodeGen.compile_to_file(&OutputName, DisableVerify, DisableInline, + if (!CodeGen.compile_to_file(&OutputName, DisableInline, DisableGVNLoadPRE, DisableLTOVectorization, ErrorInfo)) { errs() << argv[0] |