summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-11-28 16:51:49 +0000
committerAdam Nemet <anemet@apple.com>2016-11-28 16:51:49 +0000
commit58951d38693cb61541b356ec1654d8c019f89384 (patch)
treeec1237bcb449b3786737080e0d17be9c00654edb /llvm
parent3f10e669817f174cb99da771e1cd6ecbbfb44fa1 (diff)
downloadbcm5719-llvm-58951d38693cb61541b356ec1654d8c019f89384.tar.gz
bcm5719-llvm-58951d38693cb61541b356ec1654d8c019f89384.zip
[LTO] Move finishOptimizationRemarks after codegen
This addresses the comment D26832. llvm-svn: 288041
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 784f316582c..5aa91c4c689 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -567,8 +567,6 @@ bool LTOCodeGenerator::optimize(bool DisableVerify, bool DisableInline,
// Run our queue of passes all at once now, efficiently.
passes.run(*MergedModule);
- finishOptimizationRemarks();
-
return true;
}
@@ -604,6 +602,8 @@ bool LTOCodeGenerator::compileOptimized(ArrayRef<raw_pwrite_stream *> Out) {
if (llvm::AreStatisticsEnabled())
llvm::PrintStatistics();
+ finishOptimizationRemarks();
+
return true;
}
OpenPOWER on IntegriCloud