[llvm] 337bc91 - [NPM] StackColoring: Preserve function analyses (#147500)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 22:47:11 PDT 2025


Author: Akshat Oke
Date: 2025-07-09T11:17:07+05:30
New Revision: 337bc916435f40b0e6f32e197237f007a4c6ee57

URL: https://github.com/llvm/llvm-project/commit/337bc916435f40b0e6f32e197237f007a4c6ee57
DIFF: https://github.com/llvm/llvm-project/commit/337bc916435f40b0e6f32e197237f007a4c6ee57.diff

LOG: [NPM] StackColoring: Preserve function analyses (#147500)

Added: 
    

Modified: 
    llvm/lib/CodeGen/StackColoring.cpp

Removed: 
    


################################################################################
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