diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-06 05:08:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-06 05:08:57 +0000 |
commit | 1ef7c821287cd7734efb148aa3044de3e3e377a7 (patch) | |
tree | feedf95e98cba75b94d139e27f716ff2ee1478a2 /lib | |
parent | f865cb5c1f00d5655d981503ed5761b2836fa5a8 (diff) | |
download | external_llvm-1ef7c821287cd7734efb148aa3044de3e3e377a7.zip external_llvm-1ef7c821287cd7734efb148aa3044de3e3e377a7.tar.gz external_llvm-1ef7c821287cd7734efb148aa3044de3e3e377a7.tar.bz2 |
Revert r103157, which broke test/CodeGen/ARM/2009-11-30-LiveVariablesBug.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMBaseInstrInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp index 76e5bbb..0cf85e8 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.cpp +++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp @@ -540,6 +540,8 @@ bool ARMBaseInstrInfo::isMoveInstr(const MachineInstr &MI, unsigned &SrcReg, unsigned &DstReg, unsigned& SrcSubIdx, unsigned& DstSubIdx) const { + SrcSubIdx = DstSubIdx = 0; // No sub-registers. + switch (MI.getOpcode()) { default: break; case ARM::VMOVS: @@ -548,8 +550,6 @@ ARMBaseInstrInfo::isMoveInstr(const MachineInstr &MI, case ARM::VMOVQ: { SrcReg = MI.getOperand(1).getReg(); DstReg = MI.getOperand(0).getReg(); - SrcSubIdx = MI.getOperand(1).getSubReg(); - DstSubIdx = MI.getOperand(0).getSubReg(); return true; } case ARM::MOVr: @@ -564,8 +564,6 @@ ARMBaseInstrInfo::isMoveInstr(const MachineInstr &MI, "Invalid ARM MOV instruction"); SrcReg = MI.getOperand(1).getReg(); DstReg = MI.getOperand(0).getReg(); - SrcSubIdx = MI.getOperand(1).getSubReg(); - DstSubIdx = MI.getOperand(0).getSubReg(); return true; } } |