forked from OSchip/llvm-project
[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:
parent
7e02bc5237
commit
625e0e611b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue