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