Also delete last unused val#.

llvm-svn: 70212
This commit is contained in:
Evan Cheng 2009-04-27 17:35:19 +00:00
parent 2986972118
commit a630ce5fff
1 changed files with 6 additions and 0 deletions

View File

@ -629,6 +629,12 @@ void LiveInterval::MergeInClobberRanges(const LiveInterval &Clobbers,
UnusedValNo = 0;
}
}
if (UnusedValNo) {
// Delete the last unused val#.
valnos.pop_back();
UnusedValNo->~VNInfo();
}
}
void LiveInterval::MergeInClobberRange(unsigned Start, unsigned End,