[PATCH] D30479: [PGO] Text format profile reader needs to clear the value profile

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 15:49:27 PST 2017


davidxl added inline comments.


================
Comment at: lib/ProfileData/InstrProfReader.cpp:247
 
+  Record.clearValueData();
   // Check if value profile data exists and read it if so.
----------------
Add a Clear() member function to do counter reset for both edge and value counts.


https://reviews.llvm.org/D30479





More information about the llvm-commits mailing list