Add an assertion to verify that a copy was actually emitted.

llvm-svn: 68953
This commit is contained in:
Dan Gohman 2009-04-13 15:16:56 +00:00
parent 712a351c42
commit 85abd983f2
1 changed files with 2 additions and 1 deletions

View File

@ -857,7 +857,8 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
ReMatRegs.set(regB);
++NumReMats;
} else {
TII->copyRegToReg(*mbbi, mi, regA, regB, rc, rc);
bool Emitted = TII->copyRegToReg(*mbbi, mi, regA, regB, rc, rc);
assert(Emitted && "Unable to issue a copy instruction!\n");
}
MachineBasicBlock::iterator prevMI = prior(mi);