[all-commits] [llvm/llvm-project] 76981f: [BOLT] Add fuzzy function name matching for LLVM LTO

maksfb via All-commits all-commits at lists.llvm.org
Wed Apr 20 17:00:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76981fbcf6222271f4f1c166789cf1a0d6077e7e
      https://github.com/llvm/llvm-project/commit/76981fbcf6222271f4f1c166789cf1a0d6077e7e
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    M bolt/lib/Profile/DataReader.cpp
    A bolt/test/X86/lto-name-match.s

  Log Message:
  -----------
  [BOLT] Add fuzzy function name matching for LLVM LTO

LLVM with LTO can generate function names in the form
func.llvm.<number>, where <number> could vary based on the compilation
environment. As a result, if a profiled binary originated from a
different build than a corresponding binary used for BOLT optimization,
then profiles for such LTO functions will be ignored.

To fix the problem, use "fuzzy" matching with "func.llvm.*" form.

Reviewed By: yota9, Amir

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




More information about the All-commits mailing list