File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ void MachineOutliner::findCandidates(
584
584
LLVM_DEBUG (dbgs () << " *** Discarding overlapping candidates *** \n " );
585
585
LLVM_DEBUG (
586
586
dbgs () << " Searching for overlaps in all repeated sequences...\n " );
587
- for (const SuffixTree::RepeatedSubstring &RS : ST) {
587
+ for (SuffixTree::RepeatedSubstring &RS : ST) {
588
588
CandidatesForRepeatedSeq.clear ();
589
589
unsigned StringLen = RS.Length ;
590
590
LLVM_DEBUG (dbgs () << " Sequence length: " << StringLen << " \n " );
@@ -595,9 +595,8 @@ void MachineOutliner::findCandidates(
595
595
#endif
596
596
// Sort the start indices so that we can efficiently check if candidates
597
597
// overlap with each other in MachineOutliner::findCandidates().
598
- SmallVector<unsigned > SortedStartIndices (RS.StartIndices );
599
- llvm::sort (SortedStartIndices);
600
- for (const unsigned &StartIdx : SortedStartIndices) {
598
+ llvm::sort (RS.StartIndices );
599
+ for (const unsigned &StartIdx : RS.StartIndices ) {
601
600
// Trick: Discard some candidates that would be incompatible with the
602
601
// ones we've already found for this sequence. This will save us some
603
602
// work in candidate selection.
You can’t perform that action at this time.
0 commit comments