[all-commits] [llvm/llvm-project] 1e027b: [llvm][NFC] refactor setBlockFrequency for clarity.

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue Jul 28 13:04:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e027b77f056fb50e50d9f743e21eb41151c32da
      https://github.com/llvm/llvm-project/commit/1e027b77f056fb50e50d9f743e21eb41151c32da
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h
    M llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
    M llvm/lib/CodeGen/MachineSink.cpp

  Log Message:
  -----------
  [llvm][NFC] refactor setBlockFrequency for clarity.

The refactoring encapsulates frequency calculation in MachineBlockFrequencyInfo,
and renames the API to clarify its motivation. It should clarify
frequencies may not be reset 'freely' by users of the analysis, as the
API serves as a partial update to avoid a full analysis recomputation.

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




More information about the All-commits mailing list