aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitf035ce58bcf66c45d7a956668ae950f1eeeb8b20 (patch)
treeff928163ca1c7062289661838e0f8c8fd9dd8f23 /lib/CodeGen/PreAllocSplitting.cpp
parentb8c124c3439ae5fad6a6c8a7aa0d3dd48787d265 (diff)
downloadexternal_llvm-f035ce58bcf66c45d7a956668ae950f1eeeb8b20.zip
external_llvm-f035ce58bcf66c45d7a956668ae950f1eeeb8b20.tar.gz
external_llvm-f035ce58bcf66c45d7a956668ae950f1eeeb8b20.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r--lib/CodeGen/PreAllocSplitting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp
index e23024c..f2168b6 100644
--- a/lib/CodeGen/PreAllocSplitting.cpp
+++ b/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();
}