From 931a68f26b9a3de853807ffad7b2cd0a2dd30922 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 3 Jun 2020 17:14:54 -0400 Subject: [PATCH] RegAllocFast: Remove dead code --- llvm/lib/CodeGen/RegAllocFast.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index cd65ba8..157b32b 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -133,7 +133,6 @@ namespace { RegUnitSet UsedInInstr; void setPhysRegState(MCPhysReg PhysReg, unsigned NewState); - bool isPhysRegFree(MCPhysReg PhysReg) const; /// Mark a physreg as used in this instruction. void markRegUsedInInstr(MCPhysReg PhysReg) { @@ -226,7 +225,6 @@ namespace { bool mayLiveOut(Register VirtReg); bool mayLiveIn(Register VirtReg); - void printRegUnitState(unsigned State) const; void dumpState() const; }; @@ -242,14 +240,6 @@ void RegAllocFast::setPhysRegState(MCPhysReg PhysReg, unsigned NewState) { RegUnitStates[*UI] = NewState; } -bool RegAllocFast::isPhysRegFree(MCPhysReg PhysReg) const { - for (MCRegUnitIterator UI(PhysReg, TRI); UI.isValid(); ++UI) { - if (RegUnitStates[*UI] != regFree) - return false; - } - return true; -} - /// This allocates space for the specified virtual register to be held on the /// stack. int RegAllocFast::getStackSpaceFor(Register VirtReg) { -- 2.7.4