diff options
author | Paul Kirth <paulkirth@google.com> | 2022-05-03 03:28:00 +0300 |
---|---|---|
committer | Paul Kirth <paulkirth@google.com> | 2022-05-03 18:15:56 +0300 |
commit | 625e0e611b405b9c45b6d8a692d7ef17ef04e54f (patch) | |
tree | 086b535ca1079f59b56317ffc51627b21ab2e091 /bolt | |
parent | 7e02bc5237751118efe36c41b0caf004aeed022f (diff) |
[BOLT] [NFC] Remove unused variable
This patch fixes a warning from -Wunused-but-set-variable
MismatchedBranches are counted, but are never reported.
Since evaluateProfileData() should already identify and report
these cases, we can safely remove the unused variable.
Reviewed By: rafauler
Differential Revision: https://reviews.llvm.org/D124588
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/lib/Profile/DataReader.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bolt/lib/Profile/DataReader.cpp b/bolt/lib/Profile/DataReader.cpp index 3351bb5ddf06..6857c4ca49eb 100644 --- a/bolt/lib/Profile/DataReader.cpp +++ b/bolt/lib/Profile/DataReader.cpp @@ -392,7 +392,6 @@ void DataReader::readProfile(BinaryFunction &BF) { } } - uint64_t MismatchedBranches = 0; for (const BranchInfo &BI : FBD->Data) { if (BI.From.Name != BI.To.Name) continue; @@ -401,7 +400,6 @@ void DataReader::readProfile(BinaryFunction &BF) { BI.Mispreds)) { LLVM_DEBUG(dbgs() << "bad branch : " << BI.From.Offset << " -> " << BI.To.Offset << '\n'); - ++MismatchedBranches; } } |