mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
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:
parent
80b3ce65e2
commit
745825f431
@ -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]]];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user