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.