[all-commits] [llvm/llvm-project] 2fdc5d: [BOLT] Fix merge-fdata handling of BAT profiles

Rafael Auler via All-commits all-commits at lists.llvm.org
Fri May 13 19:42:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fdc5d336ed1fdcde4700a4c23777e0959d5c8d7
      https://github.com/llvm/llvm-project/commit/2fdc5d336ed1fdcde4700a4c23777e0959d5c8d7
  Author: Rafael Auler <rafaelauler at fb.com>
  Date:   2022-05-13 (Fri, 13 May 2022)

  Changed paths:
    A bolt/test/X86/Inputs/bat_profile_1.fdata
    A bolt/test/X86/Inputs/bat_profile_2.fdata
    A bolt/test/X86/merge-fdata-bat-mode.test
    M bolt/tools/merge-fdata/merge-fdata.cpp

  Log Message:
  -----------
  [BOLT] Fix merge-fdata handling of BAT profiles

When a profile is collected in a BOLTed binary, the generated
profile is tagged with a header string "boltedcollection" in the first
line of the fdata file. Fix merge-fdata to recognize this header
string and preserve it into the output.

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D125591




More information about the All-commits mailing list