summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-05-28 22:40:08 +0000
committerOwen Anderson <resistor@mac.com>2008-05-28 22:40:08 +0000
commit779b4180dce506d28b01fac72f55884d1abe85e0 (patch)
treea22f73407fa2079918ce09f8f58d5c30466ccc16 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent4f8e1ad32a3f4bb93d658e07dd5ef65e088ffe3e (diff)
downloadbcm5719-llvm-779b4180dce506d28b01fac72f55884d1abe85e0.tar.gz
bcm5719-llvm-779b4180dce506d28b01fac72f55884d1abe85e0.zip
Remap VNInfo data as well when doing renumbering.
llvm-svn: 51658
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index d49dfd058c5..976aa5a9245 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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]]];
}
}
OpenPOWER on IntegriCloud