Fixed an iteration condition in PreAllocSplitting. This should fix some miscompilations casued by PreAllocSplitting.

llvm-svn: 86919
This commit is contained in:
Lang Hames 2009-11-12 01:24:08 +00:00
parent b584d1e456
commit bff25cb044
1 changed files with 1 additions and 1 deletions

View File

@ -1400,7 +1400,7 @@ bool PreAllocSplitting::removeDeadSpills(SmallPtrSet<LiveInterval*, 8>& split) {
// Otherwise, this is a load-store case, so DCE them. // Otherwise, this is a load-store case, so DCE them.
for (SmallPtrSet<MachineInstr*, 4>::iterator UI = for (SmallPtrSet<MachineInstr*, 4>::iterator UI =
VNUseCount[CurrVN].begin(), UE = VNUseCount[CurrVN].end(); VNUseCount[CurrVN].begin(), UE = VNUseCount[CurrVN].end();
UI != UI; ++UI) { UI != UE; ++UI) {
LIs->RemoveMachineInstrFromMaps(*UI); LIs->RemoveMachineInstrFromMaps(*UI);
(*UI)->eraseFromParent(); (*UI)->eraseFromParent();
} }