diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-13 15:16:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-13 15:16:56 +0000 |
commit | 85abd983f26b9ea2b0bdc58c03f9427a7a3602c3 (patch) | |
tree | 350e1a765b6bd407b967034ba7688044d95962e7 /llvm/lib/CodeGen | |
parent | 712a351c42d5378ce02532802b51c5fb60e868af (diff) | |
download | bcm5719-llvm-85abd983f26b9ea2b0bdc58c03f9427a7a3602c3.tar.gz bcm5719-llvm-85abd983f26b9ea2b0bdc58c03f9427a7a3602c3.zip |
Add an assertion to verify that a copy was actually emitted.
llvm-svn: 68953
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 8aa866ea29b..20770a17ef2 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -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); |