[all-commits] [llvm/llvm-project] 980aa8: [MachineTraceMetrics] Add local strategy

Anton Sidorenko via All-commits all-commits at lists.llvm.org
Wed Feb 15 04:54:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 980aa8d740dac77dfe722b04892457b731d1c58b
      https://github.com/llvm/llvm-project/commit/980aa8d740dac77dfe722b04892457b731d1c58b
  Author: Anton Sidorenko <anton.sidorenko at syntacore.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

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

  Log Message:
  -----------
  [MachineTraceMetrics] Add local strategy

This strategy makes each trace local to the basic block. For in-order cores some
heuristics work better when we do local decisions. For example, MachineCombiner
may expect that instructions outside the current basic block do not lengthen
the critical path when we execute instructions in order or the core has a
small re-order buffer.

This patch only introduce the strategy, real use-case is added in the further
pathes.

Depends on D140539

Reviewed By: spatel

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




More information about the All-commits mailing list