[llvm] r249335 - Simplify code. No functionality change.
Jakub Staszak via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 11:53:30 PDT 2015
Author: kuba
Date: Mon Oct 5 13:53:30 2015
New Revision: 249335
URL: http://llvm.org/viewvc/llvm-project?rev=249335&view=rev
Log:
Simplify code. No functionality change.
Modified:
llvm/trunk/lib/IR/LegacyPassManager.cpp
Modified: llvm/trunk/lib/IR/LegacyPassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/LegacyPassManager.cpp?rev=249335&r1=249334&r2=249335&view=diff
==============================================================================
--- llvm/trunk/lib/IR/LegacyPassManager.cpp (original)
+++ llvm/trunk/lib/IR/LegacyPassManager.cpp Mon Oct 5 13:53:30 2015
@@ -784,15 +784,8 @@ void PMTopLevelManager::initializeAllAna
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);
}
}
More information about the llvm-commits
mailing list