diff options
author | Lang Hames <lhames@gmail.com> | 2009-06-24 02:17:32 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-06-24 02:17:32 +0000 |
commit | 98d5982e0020e0c18d2847798ba2f40c4711af5a (patch) | |
tree | 1ec72077b1fe554bf8c848b7e43da45dda0c724a /lib | |
parent | ef5d070bbe55d7165fc84778ca7757c3cfeea491 (diff) | |
download | external_llvm-98d5982e0020e0c18d2847798ba2f40c4711af5a.zip external_llvm-98d5982e0020e0c18d2847798ba2f40c4711af5a.tar.gz external_llvm-98d5982e0020e0c18d2847798ba2f40c4711af5a.tar.bz2 |
Fixed a bug in LiveInterval scaling (failure to scale VNI defs correctly), removed old TODO comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 3 | ||||
-rw-r--r-- | lib/CodeGen/VirtRegRewriter.h | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index cac9253..26722a3 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -373,7 +373,8 @@ void LiveInterval::scaleNumbering(unsigned factor) { for (vni_iterator VNI = vni_begin(), VNIE = vni_end(); VNI != VNIE; ++VNI) { VNInfo *vni = *VNI; - vni->def = InstrSlots::scale(vni->def, factor); + if (vni->isDefAccurate()) + vni->def = InstrSlots::scale(vni->def, factor); for (unsigned i = 0; i < vni->kills.size(); ++i) { if (vni->kills[i] != 0) diff --git a/lib/CodeGen/VirtRegRewriter.h b/lib/CodeGen/VirtRegRewriter.h index bc830f7..f9d7fbb 100644 --- a/lib/CodeGen/VirtRegRewriter.h +++ b/lib/CodeGen/VirtRegRewriter.h @@ -32,11 +32,6 @@ #include "VirtRegMap.h" #include <map> -// TODO: -// - Finish renaming Spiller -> Rewriter -// - SimpleSpiller -// - LocalSpiller - namespace llvm { /// VirtRegRewriter interface: Implementations of this interface assign |