[NFC][Regalloc] Introduce the RegAllocPriorityAdvisorAnalysis
authorEric Wang <flpha0830@gmail.com>
Thu, 8 Sep 2022 00:12:29 +0000 (17:12 -0700)
committerMircea Trofin <mtrofin@google.com>
Thu, 8 Sep 2022 14:50:03 +0000 (07:50 -0700)
commitd8a2d3f7d4a250aac44e7484f5035b859e4ef556
tree8e1d19f3b4cc8b75fc41f9d7b95a281427834ca7
parentd9e1f9d7591b0d3e4df3c0e33ffd8984fb1632a5
[NFC][Regalloc] Introduce the RegAllocPriorityAdvisorAnalysis

This patch introduces the priority analysis and the priority advisor,
the default implementation, and the scaffolding for introducing the
other implementations of the advisor.

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D132835
12 files changed:
llvm/include/llvm/InitializePasses.h
llvm/lib/CodeGen/RegAllocGreedy.cpp
llvm/lib/CodeGen/RegAllocGreedy.h
llvm/lib/CodeGen/RegAllocPriorityAdvisor.cpp
llvm/lib/CodeGen/RegAllocPriorityAdvisor.h
llvm/test/CodeGen/AArch64/O3-pipeline.ll
llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
llvm/test/CodeGen/Generic/llc-start-stop.ll
llvm/test/CodeGen/MLRegalloc/default-priority-advisor.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/O3-pipeline.ll
llvm/test/CodeGen/RISCV/O3-pipeline.ll
llvm/test/CodeGen/X86/opt-pipeline.ll