[llvm] [CodeGen] Remove dead declarations (PR #219142)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 01:20:06 PDT 2026


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/219142

The corresponding function definitions were removed on November 17,
2025 in commit 472e4ab0b02d3dec001f885beb535c9d727d1ea2.


>From d4bcb1ec0c9ba566aa808d3e0d9d82bf2a3c35f9 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Wed, 26 Aug 2026 22:37:36 -0700
Subject: [PATCH] [CodeGen] Remove dead declarations

The corresponding function definitions were removed on November 17,
2025 in commit 472e4ab0b02d3dec001f885beb535c9d727d1ea2.
---
 llvm/lib/CodeGen/MLRegAllocEvictAdvisor.h | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/llvm/lib/CodeGen/MLRegAllocEvictAdvisor.h b/llvm/lib/CodeGen/MLRegAllocEvictAdvisor.h
index 273841531a601..6674d07dad0f6 100644
--- a/llvm/lib/CodeGen/MLRegAllocEvictAdvisor.h
+++ b/llvm/lib/CodeGen/MLRegAllocEvictAdvisor.h
@@ -33,22 +33,6 @@ struct LRStartEndInfo {
   size_t Pos = 0;
 };
 
-LLVM_ABI_FOR_TEST void extractInstructionFeatures(
-    llvm::SmallVectorImpl<LRStartEndInfo> &LRPosInfo,
-    MLModelRunner *RegallocRunner, function_ref<int(SlotIndex)> GetOpcode,
-    function_ref<float(SlotIndex)> GetMBBFreq,
-    function_ref<MachineBasicBlock *(SlotIndex)> GetMBBReference,
-    const int InstructionsIndex, const int InstructionsMappingIndex,
-    const int MBBFreqIndex, const int MBBMappingIndex,
-    const SlotIndex LastIndex);
-
-LLVM_ABI_FOR_TEST void extractMBBFrequency(
-    const SlotIndex CurrentIndex, const size_t CurrentInstructionIndex,
-    std::map<MachineBasicBlock *, size_t> &VisitedMBBs,
-    function_ref<float(SlotIndex)> GetMBBFreq,
-    MachineBasicBlock *CurrentMBBReference, MLModelRunner *RegallocRunner,
-    const int MBBFreqIndex, const int MBBMappingIndex);
-
 // This is the maximum number of interfererring ranges. That's the number of
 // distinct AllocationOrder values, which comes from MCRegisterClass::RegsSize.
 // For X86, that's 32.



More information about the llvm-commits mailing list