[PATCH] D13743: Lazily sort ScopesWithImportedEntities to speed up LTO linking.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 05:40:16 PDT 2015


pcc added inline comments.

================
Comment at: lib/CodeGen/AsmPrinter/DwarfDebug.h:313
@@ -312,2 +312,3 @@
   ImportedEntityMap;
   ImportedEntityMap ScopesWithImportedEntities;
+  bool IsScopesWithImportedEntitiesSorted;
----------------
You might consider `llvm::DenseMap<const MDNode *, llvm::SmallVector<const MDNode *, 4>>` as a better data structure for this. That way, you won't need to maintain an ordering.


http://reviews.llvm.org/D13743





More information about the llvm-commits mailing list