[all-commits] [llvm/llvm-project] 19ac75: [PGO] Improve hash-mismatch warning message

xur-llvm via All-commits all-commits at lists.llvm.org
Fri Jul 15 13:55:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19ac75364fc9fb49158dd17cd56ae55b4b6fa726
      https://github.com/llvm/llvm-project/commit/19ac75364fc9fb49158dd17cd56ae55b4b6fa726
  Author: Rong Xu <xur at google.com>
  Date:   2022-07-15 (Fri, 15 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

  Log Message:
  -----------
  [PGO] Improve hash-mismatch warning message

This patch improves FDO hash-mismatch handling:
(1) filter out warnings to weak functions.
Weak functions definition will be overridden by a strong definition by linker.
The hash mismatch in profile use compilation is expected.
Make the profile hash mismatch warning under the existing option (default true).

(2) add an option to trace the hash of functions with the specific string.
Note that an empty string parameter will trace all functions.

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




More information about the All-commits mailing list