[all-commits] [llvm/llvm-project] 69d4e5: [LoopSink] Don't fetch analyses without profile da...

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


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopSink.cpp
    M llvm/test/Other/new-pm-defaults.ll
    M llvm/test/Other/new-pm-thinlto-defaults.ll

  Log Message:
  -----------
  [LoopSink] Don't fetch analyses without profile data (NFCI)

The loop sink pass only does something if the function has
profile data. Move the check for that before analyses are fetched,
to avoid computing things like BFI or MSSA unnecessarily.




More information about the All-commits mailing list