mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 06:27:16 +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. llvm-svn: 54065
This commit is contained in:
parent
987bd1dc5b
commit
9e3ea5a60c
@ -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…
Reference in New Issue
Block a user