[all-commits] [llvm/llvm-project] 4bc254: [LoopVectorize] Only fetch BFI if profile summary ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Feb 28 05:16:39 PST 2023


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

  Changed paths:
    M llvm/include/llvm/Transforms/Vectorize/LoopVectorize.h
    M llvm/lib/Transforms/Vectorize/LoopVectorize.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:
  -----------
  [LoopVectorize] Only fetch BFI if profile summary available

BlockFrequencyInfo should generally only be fetched in PGO builds
where a PSI profile summary is available. However, LoopVectorize
was fetching it unconditionally.

This results in a small compile-time improvement for non-PGO builds.

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




More information about the All-commits mailing list