[all-commits] [llvm/llvm-project] 26202a: [CGProfile] Don't fetch BFI without profile (NFCI)

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Feb 28 06:23:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26202a57e5e78b5473ef657737d181f0a68ed56d
      https://github.com/llvm/llvm-project/commit/26202a57e5e78b5473ef657737d181f0a68ed56d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M clang/test/CodeGen/sanitizer-module-constructor.c
    M llvm/lib/Transforms/Instrumentation/CGProfile.cpp
    M llvm/test/Other/new-pm-defaults.ll
    M llvm/test/Other/new-pm-lto-defaults.ll
    M llvm/test/Other/new-pm-thinlto-defaults.ll

  Log Message:
  -----------
  [CGProfile] Don't fetch BFI without profile (NFCI)

Don't fetch BFI if the function has no entry count. Peculiarly,
the implementation was already doing this for the (no longer
existing) legacy PM implementation, but the same principle applies
to the new pass manager. The only reason why the new PM doesn't
have LazyBFI is that with the new pass manager all passes are
lazy.

This improves compile-time for non-PGO builds.




More information about the All-commits mailing list