diff options
author | Owen Anderson <resistor@mac.com> | 2008-05-28 22:40:08 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-05-28 22:40:08 +0000 |
commit | fdb3f7007546d0927c20df660e1ee4e0dc95dd19 (patch) | |
tree | 9fc7ea1cf6bed803ab7e02870da6d7a1144ffaf9 /lib/CodeGen | |
parent | f47fbec2e111ac5252e7df2bee1607394d1bcfae (diff) | |
download | external_llvm-fdb3f7007546d0927c20df660e1ee4e0dc95dd19.zip external_llvm-fdb3f7007546d0927c20df660e1ee4e0dc95dd19.tar.gz external_llvm-fdb3f7007546d0927c20df660e1ee4e0dc95dd19.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index d49dfd0..976aa5a 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -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]]]; } } |