diff options
author | Mingming Liu <mingmingl@google.com> | 2025-01-22 21:06:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-22 21:06:46 -0800 |
commit | de209fa11b5455155228bcdba012b6074388b917 (patch) | |
tree | 2bffdd7ea198a5505369b03835c41f864cbc1494 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 163935a48df69bde944fae2b4581541dab30c730 (diff) | |
download | llvm-de209fa11b5455155228bcdba012b6074388b917.zip llvm-de209fa11b5455155228bcdba012b6074388b917.tar.gz llvm-de209fa11b5455155228bcdba012b6074388b917.tar.bz2 |
[CodeGen] Introduce Static Data Splitter pass (#122183)
https://discourse.llvm.org/t/rfc-profile-guided-static-data-partitioning/83744
proposes to partition static data sections.
This patch introduces a codegen pass. This patch produces jump table
hotness in the in-memory states (machine jump table info and entries).
Target-lowering and asm-printer consume the states and produce `.hot`
section suffix. The follow up PR
https://github.com/llvm/llvm-project/pull/122215 implements such
changes.
---------
Co-authored-by: Ellis Hoag <ellis.sparky.hoag@gmail.com>
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp index 925d9af7..ed87151 100644 --- a/llvm/lib/CodeGen/CodeGen.cpp +++ b/llvm/lib/CodeGen/CodeGen.cpp @@ -131,6 +131,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) { initializeStackMapLivenessPass(Registry); initializeStackProtectorPass(Registry); initializeStackSlotColoringPass(Registry); + initializeStaticDataSplitterPass(Registry); initializeStripDebugMachineModulePass(Registry); initializeTailDuplicateLegacyPass(Registry); initializeTargetPassConfigPass(Registry); |