[llvm] bf68403 - Attempt to fix [CGData][MachineOutliner] Global Outlining (#90074) (#108037)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 08:21:28 PDT 2024
Author: Kyungwoo Lee
Date: 2024-09-10T08:21:25-07:00
New Revision: bf684034844c660b778f0eba103582f582b710c9
URL: https://github.com/llvm/llvm-project/commit/bf684034844c660b778f0eba103582f582b710c9
DIFF: https://github.com/llvm/llvm-project/commit/bf684034844c660b778f0eba103582f582b710c9.diff
LOG: Attempt to fix [CGData][MachineOutliner] Global Outlining (#90074) (#108037)
Added:
Modified:
llvm/lib/CodeGen/MachineOutliner.cpp
Removed:
################################################################################
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