[llvm] [tools][llc] Add `--save-stats` option (PR #163967)
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 27 16:02:59 PDT 2025
================
@@ -355,6 +366,50 @@ static std::unique_ptr<ToolOutputFile> GetOutputStream(const char *TargetName,
return FDOut;
}
+static int MaybeEnableStats() {
+ if (SaveStats.getNumOccurrences() > 0) {
----------------
jroelofs wrote:
likewise: invert the condition so it can be an early return.
https://github.com/llvm/llvm-project/pull/163967
More information about the llvm-commits
mailing list