projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b3ce6
)
Remap VNInfo data as well when doing renumbering.
author
Owen Anderson
<resistor@mac.com>
Wed, 28 May 2008 22:40:08 +0000
(22:40 +0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 28 May 2008 22:40:08 +0000
(22:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51658
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveIntervalAnalysis.cpp
b/lib/CodeGen/LiveIntervalAnalysis.cpp
index d49dfd058c539552dd9f023c32993a5c81c6102c..976aa5a9245a7ffb8b859b52a3da07d43ae33e61 100644
(file)
--- 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]]];
}
}