summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/RegAlloc/PhyRegAlloc.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-13 21:01:20 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-13 21:01:20 +0000
commit8cdd0215bf004968dffc50c73c9aaa19cee5822c (patch)
tree83a48d75e47bb8cf4445366cc9561a5f75e34c0e /llvm/lib/Target/Sparc/RegAlloc/PhyRegAlloc.cpp
parentef9d025ebedc5495b17ba41cb6f3d12bf29af022 (diff)
downloadbcm5719-llvm-8cdd0215bf004968dffc50c73c9aaa19cee5822c.tar.gz
bcm5719-llvm-8cdd0215bf004968dffc50c73c9aaa19cee5822c.zip
Remove getAllocatedRegNum(). Use getReg() instead.
llvm-svn: 11393
Diffstat (limited to 'llvm/lib/Target/Sparc/RegAlloc/PhyRegAlloc.cpp')
-rw-r--r--llvm/lib/Target/Sparc/RegAlloc/PhyRegAlloc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/Target/Sparc/RegAlloc/PhyRegAlloc.cpp
index 4a7d503f5b2..cc019b478a7 100644
--- a/llvm/lib/Target/Sparc/RegAlloc/PhyRegAlloc.cpp
+++ b/llvm/lib/Target/Sparc/RegAlloc/PhyRegAlloc.cpp
@@ -1019,12 +1019,11 @@ void PhyRegAlloc::setRelRegsUsedByThisInst(RegClass *RC, int RegType,
// explicit and implicit operands are set.
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i)
if (MI->getOperand(i).hasAllocatedReg())
- markRegisterUsed(MI->getOperand(i).getAllocatedRegNum(), RC, RegType,MRI);
+ markRegisterUsed(MI->getOperand(i).getReg(), RC, RegType,MRI);
for (unsigned i = 0, e = MI->getNumImplicitRefs(); i != e; ++i)
if (MI->getImplicitOp(i).hasAllocatedReg())
- markRegisterUsed(MI->getImplicitOp(i).getAllocatedRegNum(), RC,
- RegType,MRI);
+ markRegisterUsed(MI->getImplicitOp(i).getReg(), RC, RegType,MRI);
// Add all of the scratch registers that are used to save values across the
// instruction (e.g., for saving state register values).
OpenPOWER on IntegriCloud