Change TargetInstrInfo::isMoveInstr to return source and destination sub-register indices as well.

llvm-svn: 62600
This commit is contained in:
Evan Cheng
2009-01-20 19:12:24 +00:00
parent 1ce41edd8d
commit c544cb0eca
32 changed files with 161 additions and 127 deletions

View File

@@ -960,8 +960,9 @@ void RALocal::AllocateBasicBlock(MachineBasicBlock &MBB) {
}
// Finally, if this is a noop copy instruction, zap it.
unsigned SrcReg, DstReg;
if (TII->isMoveInstr(*MI, SrcReg, DstReg) && SrcReg == DstReg)
unsigned SrcReg, DstReg, SrcSubReg, DstSubReg;
if (TII->isMoveInstr(*MI, SrcReg, DstReg, SrcSubReg, DstSubReg) &&
SrcReg == DstReg)
MBB.erase(MI);
}