mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
b8c124c343
commit
f035ce58bc
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user