[PATCH] D140542: [MachineCombiner] Support local strategy for traces

Anton Sidorenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 02:57:36 PST 2022


asi-sc created this revision.
Herald added subscribers: frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
asi-sc requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.

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 <https://reviews.llvm.org/D140541>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140542

Files:
  llvm/include/llvm/CodeGen/TargetInstrInfo.h
  llvm/lib/CodeGen/MachineCombiner.cpp
  llvm/lib/CodeGen/TargetInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.h
  llvm/test/CodeGen/RISCV/machine-combiner.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140542.484782.patch
Type: text/x-patch
Size: 9694 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221222/92fac98c/attachment.bin>


More information about the llvm-commits mailing list