[all-commits] [llvm/llvm-project] 5f187f: [SamplePGO] Add switch to honor zero count on bloc...

WenleiHe via All-commits all-commits at lists.llvm.org
Tue Sep 21 17:13:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f187f0afaad33013ba03454c4749d99b1362534
      https://github.com/llvm/llvm-project/commit/5f187f0afaad33013ba03454c4749d99b1362534
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2021-09-21 (Tue, 21 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp

  Log Message:
  -----------
  [SamplePGO] Add switch to honor zero count on block level as accurate

Add a new LLVM switch `-profile-sample-block-accurate` to trust zero block counts for branches. Currently we leave out such zero counts when annotating branch weight metadata, which would lead to weights being considered as unknown.

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




More information about the All-commits mailing list