[IRSim][NFC] Removing dead variables from IRSimilarityIdentifier.cpp

As informed by danielkiss.

Follow up to Differential Revision: https://reviews.llvm.org/D86972
This commit is contained in:
Andrew Litteken 2020-09-24 11:41:30 -05:00
parent ffd159d8e9
commit 08d145e6d7

View File

@ -466,8 +466,6 @@ static void createCandidatesFromSuffixTree(
std::vector<IRSimilarityCandidate> &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.