mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
simplify a little
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123573 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0daffc609
commit
54cfe7e027
@ -487,14 +487,10 @@ private:
|
||||
/// exponential growth of the table in rare cases.)
|
||||
void InsertInOverdefinedPHIs(Instruction *I, PHINode *PN) {
|
||||
std::multimap<PHINode*, Instruction*>::iterator J, E;
|
||||
bool found = false;
|
||||
tie(J, E) = UsersOfOverdefinedPHIs.equal_range(PN);
|
||||
for (; J != E; ++J)
|
||||
if (J->second == I) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
if (!found)
|
||||
if (J->second == I)
|
||||
return;
|
||||
UsersOfOverdefinedPHIs.insert(std::make_pair(PN, I));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user