[llvm] 89aad89 - [NFC][regalloc] Remove unused API in AllocationOrder
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 12:26:05 PDT 2020
Author: Mircea Trofin
Date: 2020-09-24T12:25:56-07:00
New Revision: 89aad892a596a0b54d1fcdb0b68cc5fa4d3e2932
URL: https://github.com/llvm/llvm-project/commit/89aad892a596a0b54d1fcdb0b68cc5fa4d3e2932
DIFF: https://github.com/llvm/llvm-project/commit/89aad892a596a0b54d1fcdb0b68cc5fa4d3e2932.diff
LOG: [NFC][regalloc] Remove unused API in AllocationOrder
Differential Revision: https://reviews.llvm.org/D88197
Added:
Modified:
llvm/lib/CodeGen/AllocationOrder.h
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AllocationOrder.h b/llvm/lib/CodeGen/AllocationOrder.h
index fa0690ab4ea5..75f87dd7d654 100644
--- a/llvm/lib/CodeGen/AllocationOrder.h
+++ b/llvm/lib/CodeGen/AllocationOrder.h
@@ -67,20 +67,6 @@ class LLVM_LIBRARY_VISIBILITY AllocationOrder {
return 0;
}
- /// As next(), but allow duplicates to be returned, and stop before the
- /// Limit'th register in the RegisterClassInfo allocation order.
- ///
- /// This can produce more than Limit registers if there are hints.
- unsigned nextWithDups(unsigned Limit) {
- if (Pos < 0)
- return Hints.end()[Pos++];
- if (HardHints)
- return 0;
- if (Pos < int(Limit))
- return Order[Pos++];
- return 0;
- }
-
/// Start over from the beginning.
void rewind() { Pos = -int(Hints.size()); }
More information about the llvm-commits
mailing list