From 625e0e611b405b9c45b6d8a692d7ef17ef04e54f Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 3 May 2022 00:28:00 +0000 Subject: [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 --- bolt/lib/Profile/DataReader.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'bolt') 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; } } -- cgit v1.2.3