summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PreAllocSplitting.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2009-11-12 01:24:08 +0000
committerLang Hames <lhames@gmail.com>2009-11-12 01:24:08 +0000
commitbff25cb044d9a16e46ac38fefe078d2dd3eb6edb (patch)
tree60a82c503fbe50514279cc68478ac8b3a9f8d921 /llvm/lib/CodeGen/PreAllocSplitting.cpp
parentb584d1e456efd0dd8cf678318f03dee4b7ea4391 (diff)
downloadbcm5719-llvm-bff25cb044d9a16e46ac38fefe078d2dd3eb6edb.tar.gz
bcm5719-llvm-bff25cb044d9a16e46ac38fefe078d2dd3eb6edb.zip
Fixed an iteration condition in PreAllocSplitting. This should fix some miscompilations casued by PreAllocSplitting.
llvm-svn: 86919
Diffstat (limited to 'llvm/lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r--llvm/lib/CodeGen/PreAllocSplitting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PreAllocSplitting.cpp b/llvm/lib/CodeGen/PreAllocSplitting.cpp
index e23024c085a..f2168b625e0 100644
--- a/llvm/lib/CodeGen/PreAllocSplitting.cpp
+++ b/llvm/lib/CodeGen/PreAllocSplitting.cpp
@@ -1400,7 +1400,7 @@ bool PreAllocSplitting::removeDeadSpills(SmallPtrSet<LiveInterval*, 8>& split) {
// Otherwise, this is a load-store case, so DCE them.
for (SmallPtrSet<MachineInstr*, 4>::iterator UI =
VNUseCount[CurrVN].begin(), UE = VNUseCount[CurrVN].end();
- UI != UI; ++UI) {
+ UI != UE; ++UI) {
LIs->RemoveMachineInstrFromMaps(*UI);
(*UI)->eraseFromParent();
}
OpenPOWER on IntegriCloud