aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-07 19:55:35 +0000
committerDan Gohman <gohman@apple.com>2008-07-07 19:55:35 +0000
commit604db2aeb99f94376a8babaa04ea94d04d53a027 (patch)
treec9303f63aec360ed9b9793a76888237d3d23f2de /lib/CodeGen
parent5af5ad5bc5cc3e746a5e861e514ba34ddfa9c240 (diff)
downloadexternal_llvm-604db2aeb99f94376a8babaa04ea94d04d53a027.tar.gz
external_llvm-604db2aeb99f94376a8babaa04ea94d04d53a027.tar.bz2
external_llvm-604db2aeb99f94376a8babaa04ea94d04d53a027.zip
Assert that all MachineInstrs update PhysRegUseDefLists in
their cleanup code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineRegisterInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineRegisterInfo.cpp b/lib/CodeGen/MachineRegisterInfo.cpp
index b3ee0358bb..c247a22d23 100644
--- a/lib/CodeGen/MachineRegisterInfo.cpp
+++ b/lib/CodeGen/MachineRegisterInfo.cpp
@@ -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;
}