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); }