Skip to content

Commit 08d145e

Browse files
[IRSim][NFC] Removing dead variables from IRSimilarityIdentifier.cpp
As informed by danielkiss. Follow up to Differential Revision: https://reviews.llvm.org/D86972
1 parent ffd159d commit 08d145e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Analysis/IRSimilarityIdentifier.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,6 @@ static void createCandidatesFromSuffixTree(
466466
std::vector<IRSimilarityCandidate> &CandsForRepSubstring) {
467467

468468
unsigned StringLen = RS.Length;
469-
unsigned NumFound = 0;
470-
unsigned PreviousIdx = 0;
471469

472470
// Create an IRSimilarityCandidate for instance of this subsequence \p RS.
473471
for (const unsigned &StartIdx : RS.StartIndices) {
@@ -488,9 +486,6 @@ static void createCandidatesFromSuffixTree(
488486
if (ContainsIllegal)
489487
continue;
490488

491-
PreviousIdx = EndIdx;
492-
NumFound++;
493-
494489
// We are getting iterators to the instructions in this region of code
495490
// by advancing the start and end indices from the start of the
496491
// InstrList.

0 commit comments

Comments
 (0)