[llvm] [Profile] Add binary profile correlation to offload profile metadata at runtime. (PR #69493)

David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 10:20:00 PDT 2023


================
@@ -132,7 +133,8 @@ int __llvm_profile_merge_from_buffer(const char *ProfileData,
 
   // Merge counters by iterating the entire counter section when debug info
   // correlation is enabled.
-  if (__llvm_profile_get_version() & VARIANT_MASK_DBG_CORRELATE) {
+  if ((__llvm_profile_get_version() & VARIANT_MASK_DBG_CORRELATE) ||
----------------
david-xl wrote:

use helper function and extract it to refactor patch.

https://github.com/llvm/llvm-project/pull/69493


More information about the llvm-commits mailing list