diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-06-10 15:11:19 -0400 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-06-10 15:23:56 -0400 |
commit | 0671a4c5087d40450603d9d26cf239f1a8b1367e (patch) | |
tree | fe70ec40a068a62a9c155b63546191dd35289e35 | |
parent | 2f6bb2a69215f9cae883da12f8f596d3f80f8d71 (diff) | |
download | llvm-0671a4c5087d40450603d9d26cf239f1a8b1367e.zip llvm-0671a4c5087d40450603d9d26cf239f1a8b1367e.tar.gz llvm-0671a4c5087d40450603d9d26cf239f1a8b1367e.tar.bz2 |
RegAllocFast: Avoid unused method warning in release builds
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 157b32b..df7981a2 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -184,7 +184,10 @@ namespace { bool isLastUseOfLocalReg(const MachineOperand &MO) const; void addKillFlag(const LiveReg &LRI); +#ifndef NDEBUG bool verifyRegStateMapping(const LiveReg &LR) const; +#endif + void killVirtReg(LiveReg &LR); void killVirtReg(Register VirtReg); void spillVirtReg(MachineBasicBlock::iterator MI, LiveReg &LR); @@ -381,6 +384,7 @@ void RegAllocFast::addKillFlag(const LiveReg &LR) { } } +#ifndef NDEBUG bool RegAllocFast::verifyRegStateMapping(const LiveReg &LR) const { for (MCRegUnitIterator UI(LR.PhysReg, TRI); UI.isValid(); ++UI) { if (RegUnitStates[*UI] != LR.VirtReg) @@ -389,6 +393,7 @@ bool RegAllocFast::verifyRegStateMapping(const LiveReg &LR) const { return true; } +#endif /// Mark virtreg as no longer available. void RegAllocFast::killVirtReg(LiveReg &LR) { |