[PATCH] D127084: [MCA] Allow mca::Instruction-s to be recycled and reused

Min-Yih Hsu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 5 21:21:27 PDT 2022


myhsu created this revision.
myhsu added a reviewer: andreadb.
Herald added subscribers: gbedwell, hiraditya.
Herald added a project: All.
myhsu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch introduces a new feature that allows InstrBuilder to reuse mca::Instruction recycled from IncrementalSourceMgr. This significantly reduces the memory footprint.
Note that we're only recycling instructions that have static InstrDesc and no variadic operands.

This is patch 2/2 of MCA Daemon's upstreaming efforts.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127084

Files:
  llvm/include/llvm/MCA/IncrementalSourceMgr.h
  llvm/include/llvm/MCA/InstrBuilder.h
  llvm/include/llvm/MCA/Instruction.h
  llvm/lib/MCA/InstrBuilder.cpp
  llvm/unittests/tools/llvm-mca/X86/TestIncrementalMCA.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127084.434383.patch
Type: text/x-patch
Size: 17249 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220606/6696dc25/attachment.bin>


More information about the llvm-commits mailing list