Simplify code. No functionality change.

llvm-svn: 249335
This commit is contained in:
Jakub Staszak 2015-10-05 18:53:30 +00:00
parent e7e19988a8
commit 225d3ab801
1 changed files with 2 additions and 9 deletions

View File

@ -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);
}
}