[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
This commit is contained in:
Paul Kirth 2022-05-03 00:28:00 +00:00
parent 7e02bc5237
commit 625e0e611b
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}
}