llvm.org GIT mirror llvm / 15c2d43
Simplify code. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249335 91177308-0d34-0410-b5e6-96231b3b80d8 Jakub Staszak 4 years ago
1 changed file(s) with 2 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
783783
784784 for (DenseMap::iterator DMI = LastUser.begin(),
785785 DME = LastUser.end(); DMI != DME; ++DMI) {
786 DenseMap >::iterator InvDMI =
787 InversedLastUser.find(DMI->second);
788 if (InvDMI != InversedLastUser.end()) {
789 SmallPtrSet &L = InvDMI->second;
790 L.insert(DMI->first);
791 } else {
792 SmallPtrSet L; L.insert(DMI->first);
793 InversedLastUser[DMI->second] = L;
794 }
786 SmallPtrSet &L = InversedLastUser[DMI->second];
787 L.insert(DMI->first);
795788 }
796789 }
797790