diff options
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/SparcV8/SparcV8InstrInfo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.cpp b/lib/Target/Sparc/SparcInstrInfo.cpp index 64e225faf2..7776b0bae3 100644 --- a/lib/Target/Sparc/SparcInstrInfo.cpp +++ b/lib/Target/Sparc/SparcInstrInfo.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(); diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.cpp b/lib/Target/SparcV8/SparcV8InstrInfo.cpp index 64e225faf2..7776b0bae3 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(); |