[llvm] [CodeGen] MachineFunctionSplitter: Add missing initializer (PR #123564)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 00:05:53 PST 2025
https://github.com/optimisan created https://github.com/llvm/llvm-project/pull/123564
This registers the pass with PassRegistry so we can use -start-before and other options for machine-function-splitter.
>From 373889a983f5c36eed6ef0ddfadefe977aa1e6c9 Mon Sep 17 00:00:00 2001
From: Akshat Oke <Akshat.Oke at amd.com>
Date: Sun, 19 Jan 2025 06:37:46 +0000
Subject: [PATCH] [CodeGen] MachineFunctionSplitter: Add missing initializer
This registers the pass with PassRegistry so we can use -start-before
and other options for machine-function-splitter.
---
llvm/lib/CodeGen/CodeGen.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index 8efe540770913a..925d9af7d0e06d 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -82,6 +82,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeMachineCycleInfoWrapperPassPass(Registry);
initializeMachineDominatorTreeWrapperPassPass(Registry);
initializeMachineFunctionPrinterPassPass(Registry);
+ initializeMachineFunctionSplitterPass(Registry);
initializeMachineLateInstrsCleanupPass(Registry);
initializeMachineLICMPass(Registry);
initializeMachineLoopInfoWrapperPassPass(Registry);
More information about the llvm-commits
mailing list