diff options
| author | Owen Anderson <resistor@mac.com> | 2008-07-25 21:35:43 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-07-25 21:35:43 +0000 |
| commit | 0346aba5c274edfc4745e1b3e537f71848f1e38e (patch) | |
| tree | 3f19d0eb3234bfd0d167886453ff435d91293ecf /llvm/lib/CodeGen | |
| parent | 61f60a05b2799f2d54ae77ca096b84e1f8ebb7ce (diff) | |
| download | bcm5719-llvm-0346aba5c274edfc4745e1b3e537f71848f1e38e.tar.gz bcm5719-llvm-0346aba5c274edfc4745e1b3e537f71848f1e38e.zip | |
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
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/StrongPHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index 9a9fba550b8..7f98463e48c 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -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); } |

