[all-commits] [llvm/llvm-project] e8c245: [llvm-profgen] Skip duplication factor outside of ...

WenleiHe via All-commits all-commits at lists.llvm.org
Tue Oct 19 23:18:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8c245dcd3b9f4237cdfb9dbcc6669d0b81e7936
      https://github.com/llvm/llvm-project/commit/e8c245dcd3b9f4237cdfb9dbcc6669d0b81e7936
  Author: Wenlei He <wenlei at fb.com>
  Date:   2021-10-19 (Tue, 19 Oct 2021)

  Changed paths:
    M llvm/test/tools/llvm-profgen/inline-noprobe2.test
    M llvm/tools/llvm-profgen/ProfileGenerator.cpp

  Log Message:
  -----------
  [llvm-profgen] Skip duplication factor outside of body sample computation

We incorrectly use duplication factor for total samples even though we already accumulate samples instead of taking MAX. It causes profile to have bloated total samples for functions with loop unrolled or vectorized. The change fix the issue for total sample, head sample and call target samples.

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




More information about the All-commits mailing list