[llvm-commits] [llvm] r103163 - /llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
Dan Gohman
gohman at apple.com
Wed May 5 22:08:57 PDT 2010
Author: djg
Date: Thu May 6 00:08:57 2010
New Revision: 103163
URL: http://llvm.org/viewvc/llvm-project?rev=103163&view=rev
Log:
Revert r103157, which broke test/CodeGen/ARM/2009-11-30-LiveVariablesBug.ll.
Modified:
llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=103163&r1=103162&r2=103163&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Thu May 6 00:08:57 2010
@@ -540,6 +540,8 @@
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 @@
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 @@
"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;
}
}
More information about the llvm-commits
mailing list