Fixed a bug in LiveInterval scaling (failure to scale VNI defs correctly), removed old TODO comments.

llvm-svn: 74054
This commit is contained in:
Lang Hames 2009-06-24 02:17:32 +00:00
parent 38f2453817
commit 828e301c8e
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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