From 54bd8e59f988f237e498b27104dbf4b1a7e0adf4 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Tue, 10 Sep 2024 08:21:25 -0700 Subject: [PATCH] Attempt to fix [CGData][MachineOutliner] Global Outlining (#90074) (#108037) --- 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 c9cb8882feb4e91..36c325cb422c682 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(); AU.addPreserved(); - AU.addRequired(); + AU.addUsedIfAvailable(); AU.setPreservesAll(); ModulePass::getAnalysisUsage(AU); }