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 | 80fcff0d5b74373076f3e49634dfe7c69f03bc52 (patch) | |
tree | 4a7d9ad7a0d02d10767d44f01dd8016d408856ec /lib | |
parent | faed201a4a9f6351a07e039ed6d8fd698109d7ba (diff) | |
download | external_llvm-80fcff0d5b74373076f3e49634dfe7c69f03bc52.zip external_llvm-80fcff0d5b74373076f3e49634dfe7c69f03bc52.tar.gz external_llvm-80fcff0d5b74373076f3e49634dfe7c69f03bc52.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index 9a9fba5..7f98463 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/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); } |