mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 00:18:06 +00:00
Fix bug recognizing moves: isMoveInstr should only treat ORs with %g0 as
moves, not all ORs. llvm-svn: 16576
This commit is contained in:
parent
86aaed6a34
commit
279e98a3b4
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user