[PATCH] D124588: [BOLT] Warn about the number of mismatched branches
Paul Kirth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 17:38:24 PDT 2022
paulkirth created this revision.
Herald added a reviewer: rafauler.
Herald added a subscriber: ayermolo.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
paulkirth requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.
MismatchedBranches are counted, but are never reported.
This patch fixes a warning from -Wunused-but-set-varible
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124588
Files:
bolt/lib/Profile/DataReader.cpp
Index: bolt/lib/Profile/DataReader.cpp
===================================================================
--- bolt/lib/Profile/DataReader.cpp
+++ bolt/lib/Profile/DataReader.cpp
@@ -405,6 +405,11 @@
}
}
+ if (opts::Verbosity >= 2 && MismatchedBranches > 0) {
+ errs() << "BOLT-WARNING: found " << MismatchedBranches
+ << "Mismatched Branches\n";
+ }
+
// Convert branch data into annotations.
convertBranchData(BF);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124588.425668.patch
Type: text/x-patch
Size: 451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220428/08bb7649/attachment.bin>
More information about the llvm-commits
mailing list