[llvm] r331590 - [llvm-mca] minor tweak to the resource pressure printing functionality. NFC.
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Sat May 5 05:21:54 PDT 2018
Author: adibiagio
Date: Sat May 5 05:21:54 2018
New Revision: 331590
URL: http://llvm.org/viewvc/llvm-project?rev=331590&view=rev
Log:
[llvm-mca] minor tweak to the resource pressure printing functionality. NFC.
Modified:
llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp
Modified: llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp?rev=331590&r1=331589&r2=331590&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp (original)
+++ llvm/trunk/tools/llvm-mca/ResourcePressureView.cpp Sat May 5 05:21:54 2018
@@ -84,7 +84,7 @@ static void printColumnNames(raw_string_
}
static void printResourcePressure(raw_string_ostream &OS, double Pressure) {
- if (!Pressure) {
+ if (!Pressure || Pressure < 0.005) {
OS << " - ";
return;
}
More information about the llvm-commits
mailing list