[llvm] [NPM] StackColoring: Preserve function analyses (PR #147500)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 03:36:38 PDT 2025
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/147500
>From 0fbb8283d122756a050f03c0961d56dde3f4eb1f Mon Sep 17 00:00:00 2001
From: Akshat Oke <Akshat.Oke at amd.com>
Date: Tue, 8 Jul 2025 10:34:12 +0000
Subject: [PATCH] [NPM] StackColoring: Preserve function analyses
---
llvm/lib/CodeGen/StackColoring.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp
index 0f93822d9792b..f7862641d94b9 100644
--- a/llvm/lib/CodeGen/StackColoring.cpp
+++ b/llvm/lib/CodeGen/StackColoring.cpp
@@ -1201,7 +1201,7 @@ PreservedAnalyses StackColoringPass::run(MachineFunction &MF,
MachineFunctionAnalysisManager &MFAM) {
StackColoring SC(&MFAM.getResult<SlotIndexesAnalysis>(MF));
if (SC.run(MF))
- return PreservedAnalyses::none();
+ return getMachineFunctionPassPreservedAnalyses();
return PreservedAnalyses::all();
}
More information about the llvm-commits
mailing list