When expanding the MOVsr[la]_flag pseudos, the CPSR implicit def becomes

an explicit def. Make sure to capture that properly. rdar://8556556

llvm-svn: 116591
This commit is contained in:
Jim Grosbach 2010-10-15 17:35:17 +00:00
parent 67f94c42d8
commit cb52aee60e

View File

@ -586,8 +586,7 @@ bool ARMExpandPseudo::ExpandMBB(MachineBasicBlock &MBB) {
.addReg(0)
.addImm(ARM_AM::getSORegOpc((Opcode == ARM::MOVsrl_flag ? ARM_AM::lsr
: ARM_AM::asr), 1)))
.addReg(ARM::CPSR);
TransferImpOps(MI, MIB, MIB);
.addReg(ARM::CPSR, getDefRegState(true));
MI.eraseFromParent();
break;
}