aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOutliner.cpp
diff options
context:
space:
mode:
authorKyungwoo Lee <kyulee@meta.com>2024-09-10 08:21:25 -0700
committerGitHub <noreply@github.com>2024-09-10 08:21:25 -0700
commitbf684034844c660b778f0eba103582f582b710c9 (patch)
tree8747806f129293554062ef9461e9ba90995dd2c5 /llvm/lib/CodeGen/MachineOutliner.cpp
parentd778689fdc812033e7142ed87e4ee13c4997b3f9 (diff)
downloadllvm-bf684034844c660b778f0eba103582f582b710c9.zip
llvm-bf684034844c660b778f0eba103582f582b710c9.tar.gz
llvm-bf684034844c660b778f0eba103582f582b710c9.tar.bz2
Attempt to fix [CGData][MachineOutliner] Global Outlining (#90074) (#108037)
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineOutliner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp
index c9cb888..36c325cb 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);
}