aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveRangeEdit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-10-15 22:14:34 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-10-15 22:14:34 +0000
commitcea596acf75a0680dc9bf8d9e79f9129353f57cb (patch)
tree0fdca0a083b30fe9cfd9768c2352afa214e1a90b /llvm/lib/CodeGen/LiveRangeEdit.cpp
parent6b7bdf88c91a20604ed869fdf02b73386969ed06 (diff)
downloadllvm-cea596acf75a0680dc9bf8d9e79f9129353f57cb.zip
llvm-cea596acf75a0680dc9bf8d9e79f9129353f57cb.tar.gz
llvm-cea596acf75a0680dc9bf8d9e79f9129353f57cb.tar.bz2
Remove LIS::isAllocatable() and isReserved() helpers.
All callers can simply use the corresponding MRI functions. llvm-svn: 165985
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeEdit.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveRangeEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.cpp b/llvm/lib/CodeGen/LiveRangeEdit.cpp
index 8271041..0dfb084 100644
--- a/llvm/lib/CodeGen/LiveRangeEdit.cpp
+++ b/llvm/lib/CodeGen/LiveRangeEdit.cpp
@@ -249,7 +249,7 @@ void LiveRangeEdit::eliminateDeadDefs(SmallVectorImpl<MachineInstr*> &Dead,
unsigned Reg = MOI->getReg();
if (!TargetRegisterInfo::isVirtualRegister(Reg)) {
// Check if MI reads any unreserved physregs.
- if (Reg && MOI->readsReg() && !LIS.isReserved(Reg))
+ if (Reg && MOI->readsReg() && !MRI.isReserved(Reg))
ReadsPhysRegs = true;
continue;
}