summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMExpandPseudoInsts.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-09 22:10:21 +0000
committerEric Christopher <echristo@apple.com>2012-08-09 22:10:21 +0000
commitdf1c637ac4b6f6587c037be55cafed665c732d8f (patch)
tree293597f70080516e01d9fbdcdfb6cfcc8496c271 /lib/Target/ARM/ARMExpandPseudoInsts.cpp
parent988069e2291f62dced081dd54da38b9683bdbdca (diff)
downloadllvm-df1c637ac4b6f6587c037be55cafed665c732d8f.tar.gz
llvm-df1c637ac4b6f6587c037be55cafed665c732d8f.tar.bz2
llvm-df1c637ac4b6f6587c037be55cafed665c732d8f.tar.xz
Remove getARMRegisterNumbering and replace with calls into
the register info for getEncodingValue. This builds on the small patch of yesterday to set HWEncoding in the register file. One (deprecated) use was turned into a hard number to avoid needing register info in the old JIT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMExpandPseudoInsts.cpp')
-rw-r--r--lib/Target/ARM/ARMExpandPseudoInsts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/lib/Target/ARM/ARMExpandPseudoInsts.cpp
index a242b13889..15bb32eb14 100644
--- a/lib/Target/ARM/ARMExpandPseudoInsts.cpp
+++ b/lib/Target/ARM/ARMExpandPseudoInsts.cpp
@@ -1009,7 +1009,7 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(NewOpc));
unsigned OpIdx = 0;
unsigned SrcReg = MI.getOperand(1).getReg();
- unsigned Lane = getARMRegisterNumbering(SrcReg) & 1;
+ unsigned Lane = TRI->getEncodingValue(SrcReg) & 1;
unsigned DReg = TRI->getMatchingSuperReg(SrcReg,
Lane & 1 ? ARM::ssub_1 : ARM::ssub_0,
&ARM::DPR_VFP2RegClass);