[llvm] [BOLT] Fix duplicate diagnostic message (PR #95167)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 13:00:34 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-bolt
Author: Maksim Panchenko (maksfb)
<details>
<summary>Changes</summary>
Print .altinstructions parsing stats only once.
---
Full diff: https://github.com/llvm/llvm-project/pull/95167.diff
1 Files Affected:
- (modified) bolt/lib/Rewrite/LinuxKernelRewriter.cpp (+3-2)
``````````diff
diff --git a/bolt/lib/Rewrite/LinuxKernelRewriter.cpp b/bolt/lib/Rewrite/LinuxKernelRewriter.cpp
index 6b3f5bce9f0f5..7e0141b003bd0 100644
--- a/bolt/lib/Rewrite/LinuxKernelRewriter.cpp
+++ b/bolt/lib/Rewrite/LinuxKernelRewriter.cpp
@@ -1479,8 +1479,9 @@ Error LinuxKernelRewriter::tryReadAltInstructions(uint32_t AltInstFeatureSize,
}
}
- BC.outs() << "BOLT-INFO: parsed " << EntryID
- << " alternative instruction entries\n";
+ if (!ParseOnly)
+ BC.outs() << "BOLT-INFO: parsed " << EntryID
+ << " alternative instruction entries\n";
return Error::success();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/95167
More information about the llvm-commits
mailing list