summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.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/CodeGen/RegAllocLinearScan.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/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index b9d6f0846fe..d26ee8f8c57 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -443,7 +443,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
MachineOperand& op = currentInstr_->getOperand(i);
if (op.isRegister() && op.isUse() &&
MRegisterInfo::isVirtualRegister(op.getReg())) {
- unsigned virtReg = op.getAllocatedRegNum();
+ unsigned virtReg = op.getReg();
unsigned physReg = 0;
Virt2PhysMap::iterator it = v2pMap_.find(virtReg);
if (it != v2pMap_.end()) {
OpenPOWER on IntegriCloud