[llvm] 8f492f6 - Remove unused verifyRegStateMapping() function in RegAllocFast (NFC)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 23 17:37:29 PDT 2020
Author: Mehdi Amini
Date: 2020-10-24T00:36:51Z
New Revision: 8f492f646781ed6c894775f95846520728d9119e
URL: https://github.com/llvm/llvm-project/commit/8f492f646781ed6c894775f95846520728d9119e
DIFF: https://github.com/llvm/llvm-project/commit/8f492f646781ed6c894775f95846520728d9119e.diff
LOG: Remove unused verifyRegStateMapping() function in RegAllocFast (NFC)
This fixes compiler warning when building with assertions.
Added:
Modified:
llvm/lib/CodeGen/RegAllocFast.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 03411bebf747..78a797da8459 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -213,9 +213,6 @@ namespace {
void allocateInstruction(MachineInstr &MI);
void handleDebugValue(MachineInstr &MI);
-#ifndef NDEBUG
- bool verifyRegStateMapping(const LiveReg &LR) const;
-#endif
bool usePhysReg(MachineInstr &MI, MCPhysReg PhysReg);
bool definePhysReg(MachineInstr &MI, MCPhysReg PhysReg);
bool displacePhysReg(MachineInstr &MI, MCPhysReg PhysReg);
@@ -1380,17 +1377,6 @@ void RegAllocFast::handleDebugValue(MachineInstr &MI) {
LiveDbgValueMap[Reg].push_back(&MI);
}
-#ifndef NDEBUG
-bool RegAllocFast::verifyRegStateMapping(const LiveReg &LR) const {
- for (MCRegUnitIterator UI(LR.PhysReg, TRI); UI.isValid(); ++UI) {
- if (RegUnitStates[*UI] != LR.VirtReg)
- return false;
- }
-
- return true;
-}
-#endif
-
void RegAllocFast::allocateBasicBlock(MachineBasicBlock &MBB) {
this->MBB = &MBB;
LLVM_DEBUG(dbgs() << "\nAllocating " << MBB);
More information about the llvm-commits
mailing list