From 08d145e6d7a9b3085d433d05abac5c8a4392e09a Mon Sep 17 00:00:00 2001 From: Andrew Litteken Date: Thu, 24 Sep 2020 11:41:30 -0500 Subject: [PATCH] [IRSim][NFC] Removing dead variables from IRSimilarityIdentifier.cpp As informed by danielkiss. Follow up to Differential Revision: https://reviews.llvm.org/D86972 --- llvm/lib/Analysis/IRSimilarityIdentifier.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/Analysis/IRSimilarityIdentifier.cpp b/llvm/lib/Analysis/IRSimilarityIdentifier.cpp index c482fd52bad0..579074f5de08 100644 --- a/llvm/lib/Analysis/IRSimilarityIdentifier.cpp +++ b/llvm/lib/Analysis/IRSimilarityIdentifier.cpp @@ -466,8 +466,6 @@ static void createCandidatesFromSuffixTree( std::vector &CandsForRepSubstring) { unsigned StringLen = RS.Length; - unsigned NumFound = 0; - unsigned PreviousIdx = 0; // Create an IRSimilarityCandidate for instance of this subsequence \p RS. for (const unsigned &StartIdx : RS.StartIndices) { @@ -488,9 +486,6 @@ static void createCandidatesFromSuffixTree( if (ContainsIllegal) continue; - PreviousIdx = EndIdx; - NumFound++; - // We are getting iterators to the instructions in this region of code // by advancing the start and end indices from the start of the // InstrList.