From: Adam Nemet Date: Mon, 28 Nov 2016 16:51:49 +0000 (+0000) Subject: [LTO] Move finishOptimizationRemarks after codegen X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e45db3e2ec0418e3008fcc1b1417aa388ab9984;p=llvm [LTO] Move finishOptimizationRemarks after codegen This addresses the comment D26832. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288041 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp index 784f316582c..5aa91c4c689 100644 --- a/lib/LTO/LTOCodeGenerator.cpp +++ b/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 Out) { if (llvm::AreStatisticsEnabled()) llvm::PrintStatistics(); + finishOptimizationRemarks(); + return true; }