[llvm-commits] [llvm] r53194 - /llvm/trunk/lib/CodeGen/MachineRegisterInfo.cpp
Dan Gohman
gohman at apple.com
Mon Jul 7 12:55:48 PDT 2008
Author: djg
Date: Mon Jul 7 14:55:35 2008
New Revision: 53194
URL: http://llvm.org/viewvc/llvm-project?rev=53194&view=rev
Log:
Assert that all MachineInstrs update PhysRegUseDefLists in
their cleanup code.
Modified:
llvm/trunk/lib/CodeGen/MachineRegisterInfo.cpp
Modified: llvm/trunk/lib/CodeGen/MachineRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineRegisterInfo.cpp?rev=53194&r1=53193&r2=53194&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineRegisterInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineRegisterInfo.cpp Mon Jul 7 14:55:35 2008
@@ -27,6 +27,9 @@
#ifndef NDEBUG
for (unsigned i = 0, e = VRegInfo.size(); i != e; ++i)
assert(VRegInfo[i].second == 0 && "Vreg use list non-empty still?");
+ for (unsigned i = 0, e = UsedPhysRegs.size(); i != e; ++i)
+ assert(!PhysRegUseDefLists[i] &&
+ "PhysRegUseDefLists has entries after all instructions are deleted");
#endif
delete [] PhysRegUseDefLists;
}
More information about the llvm-commits
mailing list