[PATCH] D124588: [BOLT] [NFC] Remove unused variable

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 08:16:09 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG625e0e611b40: [BOLT] [NFC] Remove unused variable (authored by paulkirth).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124588/new/

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
@@ -392,7 +392,6 @@
     }
   }
 
-  uint64_t MismatchedBranches = 0;
   for (const BranchInfo &BI : FBD->Data) {
     if (BI.From.Name != BI.To.Name)
       continue;
@@ -401,7 +400,6 @@
                       BI.Mispreds)) {
       LLVM_DEBUG(dbgs() << "bad branch : " << BI.From.Offset << " -> "
                         << BI.To.Offset << '\n');
-      ++MismatchedBranches;
     }
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124588.426718.patch
Type: text/x-patch
Size: 572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/4c4719f0/attachment.bin>


More information about the llvm-commits mailing list