[llvm] Attempt to fix [CGData][MachineOutliner] Global Outlining (#90074) (PR #108037)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 07:47:10 PDT 2024
https://github.com/kyulee-com created https://github.com/llvm/llvm-project/pull/108037
None
>From 184d728530d6385393388bb7810ef7a381f16cde Mon Sep 17 00:00:00 2001
From: Kyungwoo Lee <kyulee at meta.com>
Date: Tue, 10 Sep 2024 07:45:40 -0700
Subject: [PATCH] Attempt to fix [CGData][MachineOutliner] Global Outlining
(#90074)
---
llvm/lib/CodeGen/MachineOutliner.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp
index c9cb8882feb4e9..36c325cb422c68 100644
--- a/llvm/lib/CodeGen/MachineOutliner.cpp
+++ b/llvm/lib/CodeGen/MachineOutliner.cpp
@@ -463,7 +463,7 @@ struct MachineOutliner : public ModulePass {
void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addRequired<MachineModuleInfoWrapperPass>();
AU.addPreserved<MachineModuleInfoWrapperPass>();
- AU.addRequired<ImmutableModuleSummaryIndexWrapperPass>();
+ AU.addUsedIfAvailable<ImmutableModuleSummaryIndexWrapperPass>();
AU.setPreservesAll();
ModulePass::getAnalysisUsage(AU);
}
More information about the llvm-commits
mailing list