[PATCH] D129615: [MachineCombiner] Don't compute the latency of transient instructions

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 18:40:20 PDT 2022


Carrot created this revision.
Carrot added reviewers: dmgreen, Gerolf, fhahn, snnw.
Herald added subscribers: jsji, pengfei, hiraditya.
Herald added a project: All.
Carrot requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If an MI will not generate a target instruction, we should not compute its latency. Then we can compute more precise instruction sequence cost, and get better result.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129615

Files:
  llvm/lib/CodeGen/MachineCombiner.cpp
  llvm/test/CodeGen/AArch64/aarch64-combine-fmul-fsub.mir
  llvm/test/CodeGen/AArch64/machine-combiner-transient.ll
  llvm/test/CodeGen/AArch64/neon-mla-mls.ll
  llvm/test/CodeGen/X86/machine-combiner-int-vec.ll
  llvm/test/CodeGen/X86/machine-combiner-int.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129615.444133.patch
Type: text/x-patch
Size: 45421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220713/c466d5b5/attachment.bin>


More information about the llvm-commits mailing list