forked from OSchip/llvm-project
parent
e7e19988a8
commit
225d3ab801
|
@ -784,15 +784,8 @@ void PMTopLevelManager::initializeAllAnalysisInfo() {
|
|||
|
||||
for (DenseMap<Pass *, Pass *>::iterator DMI = LastUser.begin(),
|
||||
DME = LastUser.end(); DMI != DME; ++DMI) {
|
||||
DenseMap<Pass *, SmallPtrSet<Pass *, 8> >::iterator InvDMI =
|
||||
InversedLastUser.find(DMI->second);
|
||||
if (InvDMI != InversedLastUser.end()) {
|
||||
SmallPtrSet<Pass *, 8> &L = InvDMI->second;
|
||||
L.insert(DMI->first);
|
||||
} else {
|
||||
SmallPtrSet<Pass *, 8> L; L.insert(DMI->first);
|
||||
InversedLastUser[DMI->second] = L;
|
||||
}
|
||||
SmallPtrSet<Pass *, 8> &L = InversedLastUser[DMI->second];
|
||||
L.insert(DMI->first);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue