From: Lang Hames Date: Thu, 12 Nov 2009 01:24:08 +0000 (+0000) Subject: Fixed an iteration condition in PreAllocSplitting. This should fix some miscompilatio... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f035ce58bcf66c45d7a956668ae950f1eeeb8b20;p=oota-llvm.git Fixed an iteration condition in PreAllocSplitting. This should fix some miscompilations casued by PreAllocSplitting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86919 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp index e23024c085a..f2168b625e0 100644 --- a/lib/CodeGen/PreAllocSplitting.cpp +++ b/lib/CodeGen/PreAllocSplitting.cpp @@ -1400,7 +1400,7 @@ bool PreAllocSplitting::removeDeadSpills(SmallPtrSet& split) { // Otherwise, this is a load-store case, so DCE them. for (SmallPtrSet::iterator UI = VNUseCount[CurrVN].begin(), UE = VNUseCount[CurrVN].end(); - UI != UI; ++UI) { + UI != UE; ++UI) { LIs->RemoveMachineInstrFromMaps(*UI); (*UI)->eraseFromParent(); }