summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
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