diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/BasicBlockPathCloning.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/BasicBlockPathCloning.cpp | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/BasicBlockPathCloning.cpp b/contrib/llvm-project/llvm/lib/CodeGen/BasicBlockPathCloning.cpp index 5d5f3c3da481..901542e8507b 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/BasicBlockPathCloning.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/BasicBlockPathCloning.cpp @@ -196,7 +196,7 @@ class BasicBlockPathCloning : public MachineFunctionPass {  public:    static char ID; -  BasicBlockSectionsProfileReader *BBSectionsProfileReader = nullptr; +  BasicBlockSectionsProfileReaderWrapperPass *BBSectionsProfileReader = nullptr;    BasicBlockPathCloning() : MachineFunctionPass(ID) {      initializeBasicBlockPathCloningPass(*PassRegistry::getPassRegistry()); @@ -218,7 +218,7 @@ INITIALIZE_PASS_BEGIN(      BasicBlockPathCloning, "bb-path-cloning",      "Applies path clonings for the -basic-block-sections=list option", false,      false) -INITIALIZE_PASS_DEPENDENCY(BasicBlockSectionsProfileReader) +INITIALIZE_PASS_DEPENDENCY(BasicBlockSectionsProfileReaderWrapperPass)  INITIALIZE_PASS_END(      BasicBlockPathCloning, "bb-path-cloning",      "Applies path clonings for the -basic-block-sections=list option", false, @@ -230,13 +230,14 @@ bool BasicBlockPathCloning::runOnMachineFunction(MachineFunction &MF) {    if (hasInstrProfHashMismatch(MF))      return false; -  return ApplyCloning(MF, getAnalysis<BasicBlockSectionsProfileReader>() -                              .getClonePathsForFunction(MF.getName())); +  return ApplyCloning(MF, +                      getAnalysis<BasicBlockSectionsProfileReaderWrapperPass>() +                          .getClonePathsForFunction(MF.getName()));  }  void BasicBlockPathCloning::getAnalysisUsage(AnalysisUsage &AU) const {    AU.setPreservesAll(); -  AU.addRequired<BasicBlockSectionsProfileReader>(); +  AU.addRequired<BasicBlockSectionsProfileReaderWrapperPass>();    MachineFunctionPass::getAnalysisUsage(AU);  }  | 
