Fix bug recognizing moves: isMoveInstr should only treat ORs with %g0 as

moves, not all ORs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2004-09-29 03:28:15 +00:00
parent bcf2ad296f
commit 9b8ed0e04a
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();