Assert that all MachineInstrs update PhysRegUseDefLists in

their cleanup code. 

llvm-svn: 53194
This commit is contained in:
Dan Gohman 2008-07-07 19:55:35 +00:00
parent 03001cb820
commit 14ce7d1eba
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ MachineRegisterInfo::~MachineRegisterInfo() {
#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;
}