[all-commits] [llvm/llvm-project] 2693ef: [MachineCombiner] Support local strategy for traces

Anton Sidorenko via All-commits all-commits at lists.llvm.org
Fri Feb 17 02:18:12 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2693efa8a5bcd5196264c54f36f7fe6df6799420
  Author: Anton Sidorenko <anton.sidorenko at syntacore.com>
  Date:   2023-02-17 (Fri, 17 Feb 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetInstrInfo.h
    M llvm/lib/CodeGen/MachineCombiner.cpp
    M llvm/lib/CodeGen/TargetInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.h
    A llvm/test/CodeGen/RISCV/machine-combiner-strategies.ll
    M llvm/test/CodeGen/RISCV/machine-combiner.ll

  Log Message:
  [MachineCombiner] Support local strategy for traces

For in-order cores MachineCombiner makes better decisions when the critical path
is calculated only for the current basic block and does not take into account
other blocks from the trace.

This patch adds a virtual method to TargetInstrInfo to allow each target decide
which strategy to use.

Depends on D140541

Reviewed By: spatel

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

More information about the All-commits mailing list