diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.cpp b/lib/Target/SparcV8/SparcV8InstrInfo.cpp index 64e225faf21..7776b0bae3c 100644 --- a/lib/Target/SparcV8/SparcV8InstrInfo.cpp +++ b/lib/Target/SparcV8/SparcV8InstrInfo.cpp @@ -30,8 +30,8 @@ bool SparcV8InstrInfo::isMoveInstr(const MachineInstr &MI, if (MI.getOperand(1).getReg() == V8::G0) { // X = or G0, Y -> X = Y DstReg = MI.getOperand(0).getReg(); SrcReg = MI.getOperand(2).getReg(); + return true; } - return true; } else if (MI.getOpcode() == V8::FMOVS) { SrcReg = MI.getOperand(1).getReg(); DstReg = MI.getOperand(0).getReg();