mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32:49 +00:00
In order to avoid reprocessing a register more than once, we need to add it
to the handled set so it will get filtered out in future iterations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55c64358d1
commit
020decc2b4
@ -741,7 +741,7 @@ void StrongPHIElimination::ScheduleCopies(MachineBasicBlock* MBB,
|
||||
std::set<unsigned> RegHandled;
|
||||
for (SmallVector<std::pair<unsigned, MachineInstr*>, 4>::iterator I =
|
||||
InsertedPHIDests.begin(), E = InsertedPHIDests.end(); I != E; ++I)
|
||||
if (!RegHandled.count(I->first))
|
||||
if (!RegHandled.insert(I->first).second)
|
||||
LI.addLiveRangeToEndOfBlock(I->first, I->second);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user