Use MI.isCopy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2010-07-16 22:35:34 +00:00
parent c66756ba16
commit 84d499a698

View File

@ -1058,10 +1058,8 @@ bool X86FastISel::X86SelectBranch(const Instruction *I) {
const MachineInstr &MI = *RI;
if (MI.definesRegister(Reg)) {
unsigned Src, Dst, SrcSR, DstSR;
if (getInstrInfo()->isMoveInstr(MI, Src, Dst, SrcSR, DstSR)) {
Reg = Src;
if (MI.isCopy()) {
Reg = MI.getOperand(1).getReg();
continue;
}