[all-commits] [llvm/llvm-project] a8a38e: [llvm-profgen] Fix bug of loop scope mismatch

ictwanglei via All-commits all-commits at lists.llvm.org
Thu Aug 5 16:53:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8a38ef3d99ce2b180f9c5ff968e5b930a99b10b
      https://github.com/llvm/llvm-project/commit/a8a38ef3d99ce2b180f9c5ff968e5b930a99b10b
  Author: wlei <wlei at fb.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

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

  Log Message:
  -----------
  [llvm-profgen] Fix bug of loop scope mismatch

One performance issue happened in profile generation and it turned out the line 525 loop is the bottleneck.
Moving the code outside of loop scope can fix this issue. The run time is improved from 30+mins to ~30s.

Reviewed By: hoy, wenlei

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




More information about the All-commits mailing list