Remap VNInfo data as well when doing renumbering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-05-28 22:40:08 +00:00
parent 80b3ce65e2
commit 745825f431

View File

@ -114,6 +114,12 @@ void LiveIntervals::computeNumbering() {
LI != LE; ++LI) {
LI->start = mi2iMap_[OldI2MI[LI->start]];
LI->end = mi2iMap_[OldI2MI[LI->end]];
VNInfo* vni = LI->valno;
vni->def = mi2iMap_[OldI2MI[vni->def]];
for (size_t i = 0; i < vni->kills.size(); ++i)
vni->kills[i] = mi2iMap_[OldI2MI[vni->kills[i]]];
}
}