[all-commits] [llvm/llvm-project] ac8da3: [PGO][PGSO] Handle MBFIWrapper

hjyamauchi via All-commits all-commits at lists.llvm.org
Fri Jan 31 09:37:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ac8da31a0f9895685e34e661d44075f46b559fbe
      https://github.com/llvm/llvm-project/commit/ac8da31a0f9895685e34e661d44075f46b559fbe
  Author: Hiroshi Yamauchi <yamauchi at google.com>
  Date:   2020-01-31 (Fri, 31 Jan 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineSizeOpts.h
    M llvm/include/llvm/CodeGen/TailDuplicator.h
    M llvm/include/llvm/Transforms/Utils/SizeOpts.h
    M llvm/lib/CodeGen/BranchFolding.cpp
    M llvm/lib/CodeGen/MachineBlockPlacement.cpp
    M llvm/lib/CodeGen/MachineSizeOpts.cpp
    M llvm/lib/CodeGen/TailDuplication.cpp
    M llvm/lib/CodeGen/TailDuplicator.cpp
    M llvm/lib/Transforms/Utils/SizeOpts.cpp
    M llvm/test/CodeGen/X86/tail-opts.ll

  Log Message:
  -----------
  [PGO][PGSO] Handle MBFIWrapper

Some code gen passes use MBFIWrapper to keep track of the frequency of new
blocks. This was not taken into account and could lead to incorrect frequencies
as MBFI silently returns zero frequency for unknown/new blocks.

Add a variant for MBFIWrapper in the PGSO query interface.

Depends on D73494.




More information about the All-commits mailing list