[PATCH] D117147: [MLGO] ML Regalloc Eviction Advisor

Mircea Trofin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 12 13:51:19 PST 2022


mtrofin created this revision.
mtrofin added reviewers: yundiqian, MatzeB, wenlei.
Herald added subscribers: pengfei, hiraditya, mgorny, nemanjai, qcolombet.
mtrofin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The bulk of the implementation is common between 'release' mode (==AOT-ed
model) and 'development' mode (for training), the main difference is
that in development mode, we may also log features (for training logs),
inject scoring information (currently after the Virtual Register
Rewriter) and then produce the log file.

This patch also introduces the score injection pass, 'Register
Allocation Pass Scoring', which is trivially just logging the score in
development mode.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117147

Files:
  llvm/CMakeLists.txt
  llvm/include/llvm/CodeGen/Passes.h
  llvm/include/llvm/InitializePasses.h
  llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py
  llvm/lib/CodeGen/CMakeLists.txt
  llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp
  llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
  llvm/lib/CodeGen/RegAllocGreedy.h
  llvm/lib/CodeGen/TargetPassConfig.cpp
  llvm/test/CodeGen/AArch64/O3-pipeline.ll
  llvm/test/CodeGen/ARM/O3-pipeline.ll
  llvm/test/CodeGen/MLRegalloc/Inputs/input.ll
  llvm/test/CodeGen/MLRegalloc/dev-mode-log-2-fcts.ll
  llvm/test/CodeGen/MLRegalloc/dev-mode-logging.ll
  llvm/test/CodeGen/MLRegalloc/dev-rel-equivalence.ll
  llvm/test/CodeGen/MLRegalloc/rel-codepath.ll
  llvm/test/CodeGen/PowerPC/O3-pipeline.ll
  llvm/test/CodeGen/X86/opt-pipeline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117147.399439.patch
Type: text/x-patch
Size: 72175 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220112/fb797bd8/attachment.bin>


More information about the llvm-commits mailing list