[PATCH] D60516: [LTO] Add plumbing to save stats during LTO on Darwin.
Steven Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 10:51:57 PDT 2019
steven_wu added a comment.
forgot to save the inline comments.
================
Comment at: llvm/lib/LTO/LTOCodeGenerator.cpp:601
// If statistics were requested, print them out after codegen.
- if (llvm::AreStatisticsEnabled())
+ if (llvm::AreStatisticsEnabled() && !StatsFile)
llvm::PrintStatistics();
----------------
You can simplify the logic a bit here.
```
if (StatsFile)
...
else if (llvm::AreStatisticsEnabled())
...
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60516/new/
https://reviews.llvm.org/D60516
More information about the llvm-commits
mailing list