From 89aad892a596a0b54d1fcdb0b68cc5fa4d3e2932 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Wed, 23 Sep 2020 20:10:42 -0700 Subject: [PATCH] [NFC][regalloc] Remove unused API in AllocationOrder Differential Revision: https://reviews.llvm.org/D88197 --- llvm/lib/CodeGen/AllocationOrder.h | 14 -------------- 1 file changed, 14 deletions(-) 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 @@ public: 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()); }