[all-commits] [llvm/llvm-project] 8cf152: [loop unroll] Fix `branch-weights` for unrolled loop.

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue Feb 14 12:01:11 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cf1524cbc7f4d8dade005de69abcd07a9b5e32a
      https://github.com/llvm/llvm-project/commit/8cf1524cbc7f4d8dade005de69abcd07a9b5e32a
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopUnroll.cpp
    M llvm/test/Transforms/LoopUnroll/runtime-loop-branchweight.ll
    M llvm/test/Transforms/LoopUnroll/unroll-heuristics-pgo.ll

  Log Message:
  -----------
  [loop unroll] Fix `branch-weights` for unrolled loop.

The branch weights of the unrolled loop need to be reduced by the
unroll factor.

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




More information about the All-commits mailing list