[llvm] r288041 - [LTO] Move finishOptimizationRemarks after codegen
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 28 08:51:50 PST 2016
Author: anemet
Date: Mon Nov 28 10:51:49 2016
New Revision: 288041
URL: http://llvm.org/viewvc/llvm-project?rev=288041&view=rev
Log:
[LTO] Move finishOptimizationRemarks after codegen
This addresses the comment D26832.
Modified:
llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
Modified: llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOCodeGenerator.cpp?rev=288041&r1=288040&r2=288041&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/lib/LTO/LTOCodeGenerator.cpp Mon Nov 28 10:51:49 2016
@@ -567,8 +567,6 @@ bool LTOCodeGenerator::optimize(bool Dis
// Run our queue of passes all at once now, efficiently.
passes.run(*MergedModule);
- finishOptimizationRemarks();
-
return true;
}
@@ -604,6 +602,8 @@ bool LTOCodeGenerator::compileOptimized(
if (llvm::AreStatisticsEnabled())
llvm::PrintStatistics();
+ finishOptimizationRemarks();
+
return true;
}
More information about the llvm-commits
mailing list