Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 5e45db3

Browse files
committed
[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
1 parent 8edff6c commit 5e45db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/LTO/LTOCodeGenerator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,6 @@ bool LTOCodeGenerator::optimize(bool DisableVerify, bool DisableInline,
567567
// Run our queue of passes all at once now, efficiently.
568568
passes.run(*MergedModule);
569569

570-
finishOptimizationRemarks();
571-
572570
return true;
573571
}
574572

@@ -604,6 +602,8 @@ bool LTOCodeGenerator::compileOptimized(ArrayRef<raw_pwrite_stream *> Out) {
604602
if (llvm::AreStatisticsEnabled())
605603
llvm::PrintStatistics();
606604

605+
finishOptimizationRemarks();
606+
607607
return true;
608608
}
609609

0 commit comments

Comments
 (0)