[PATCH] D14786: [llvm-profdata] Add merge() to InstrProfRecord

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 14:17:00 PST 2015


davidxl added inline comments.

================
Comment at: lib/ProfileData/InstrProfWriter.cpp:104
@@ -129,3 +103,3 @@
 
   auto Where = ProfileDataMap.find(I.Hash);
   if (Where == ProfileDataMap.end()) {
----------------
Better to do insert here and check if insertion actually happens or not.


http://reviews.llvm.org/D14786





More information about the llvm-commits mailing list