Skip to content

Commit 89aad89

Browse files
committed
[NFC][regalloc] Remove unused API in AllocationOrder
Differential Revision: https://reviews.llvm.org/D88197
1 parent 9ed1e58 commit 89aad89

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

llvm/lib/CodeGen/AllocationOrder.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,6 @@ class LLVM_LIBRARY_VISIBILITY AllocationOrder {
6767
return 0;
6868
}
6969

70-
/// As next(), but allow duplicates to be returned, and stop before the
71-
/// Limit'th register in the RegisterClassInfo allocation order.
72-
///
73-
/// This can produce more than Limit registers if there are hints.
74-
unsigned nextWithDups(unsigned Limit) {
75-
if (Pos < 0)
76-
return Hints.end()[Pos++];
77-
if (HardHints)
78-
return 0;
79-
if (Pos < int(Limit))
80-
return Order[Pos++];
81-
return 0;
82-
}
83-
8470
/// Start over from the beginning.
8571
void rewind() { Pos = -int(Hints.size()); }
8672

0 commit comments

Comments
 (0)