mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 11:38:35 +00:00
Add an assertion to verify that a copy was actually emitted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3cd0aa3260
commit
6ed0e20eb2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user