[llvm-commits] [llvm] r68953 - /llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
Dan Gohman
gohman at apple.com
Mon Apr 13 08:16:56 PDT 2009
Author: djg
Date: Mon Apr 13 10:16:56 2009
New Revision: 68953
URL: http://llvm.org/viewvc/llvm-project?rev=68953&view=rev
Log:
Add an assertion to verify that a copy was actually emitted.
Modified:
llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=68953&r1=68952&r2=68953&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Mon Apr 13 10:16:56 2009
@@ -857,7 +857,8 @@
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);
More information about the llvm-commits
mailing list