From: Owen Anderson Date: Wed, 28 May 2008 22:40:08 +0000 (+0000) Subject: Remap VNInfo data as well when doing renumbering. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=745825f431920662e97bdab5c1bcfac62e48c52f;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index d49dfd058c5..976aa5a9245 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]]]; } }