mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +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:
@@ -487,15 +487,11 @@ private:
|
|||||||
/// exponential growth of the table in rare cases.)
|
/// exponential growth of the table in rare cases.)
|
||||||
void InsertInOverdefinedPHIs(Instruction *I, PHINode *PN) {
|
void InsertInOverdefinedPHIs(Instruction *I, PHINode *PN) {
|
||||||
std::multimap<PHINode*, Instruction*>::iterator J, E;
|
std::multimap<PHINode*, Instruction*>::iterator J, E;
|
||||||
bool found = false;
|
|
||||||
tie(J, E) = UsersOfOverdefinedPHIs.equal_range(PN);
|
tie(J, E) = UsersOfOverdefinedPHIs.equal_range(PN);
|
||||||
for (; J != E; ++J)
|
for (; J != E; ++J)
|
||||||
if (J->second == I) {
|
if (J->second == I)
|
||||||
found = true;
|
return;
|
||||||
break;
|
UsersOfOverdefinedPHIs.insert(std::make_pair(PN, I));
|
||||||
}
|
|
||||||
if (!found)
|
|
||||||
UsersOfOverdefinedPHIs.insert(std::make_pair(PN, I));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user