[llvm-commits] [llvm] r86919 - /llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
Lang Hames
lhames at gmail.com
Wed Nov 11 17:24:08 PST 2009
Author: lhames
Date: Wed Nov 11 19:24:08 2009
New Revision: 86919
URL: http://llvm.org/viewvc/llvm-project?rev=86919&view=rev
Log:
Fixed an iteration condition in PreAllocSplitting. This should fix some miscompilations casued by PreAllocSplitting.
Modified:
llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
Modified: llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp?rev=86919&r1=86918&r2=86919&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp (original)
+++ llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp Wed Nov 11 19:24:08 2009
@@ -1400,7 +1400,7 @@
// 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();
}
More information about the llvm-commits
mailing list