Index: llvm/include/llvm/CodeGen/AsmPrinter.h =================================================================== --- llvm/include/llvm/CodeGen/AsmPrinter.h +++ llvm/include/llvm/CodeGen/AsmPrinter.h @@ -48,7 +48,6 @@ class GlobalValue; class GlobalVariable; class MachineBasicBlock; -class MachineBlockFrequencyInfo; class MachineConstantPoolValue; class MachineDominatorTree; class MachineFunction; @@ -69,7 +68,6 @@ class MCTargetOptions; class MDNode; class Module; -class ProfileSummaryInfo; class raw_ostream; class StackMaps; class TargetLoweringObjectFile; @@ -112,10 +110,6 @@ /// Optimization remark emitter. MachineOptimizationRemarkEmitter *ORE; - MachineBlockFrequencyInfo *MBFI; - - ProfileSummaryInfo *PSI; - /// The symbol for the entry in __patchable_function_entires. MCSymbol *CurrentPatchableFunctionEntrySym = nullptr; Index: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp =================================================================== --- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -31,16 +31,13 @@ #include "llvm/Analysis/ConstantFolding.h" #include "llvm/Analysis/EHPersonalities.h" #include "llvm/Analysis/OptimizationRemarkEmitter.h" -#include "llvm/Analysis/ProfileSummaryInfo.h" #include "llvm/BinaryFormat/COFF.h" #include "llvm/BinaryFormat/Dwarf.h" #include "llvm/BinaryFormat/ELF.h" #include "llvm/CodeGen/GCMetadata.h" #include "llvm/CodeGen/GCMetadataPrinter.h" #include "llvm/CodeGen/GCStrategy.h" -#include "llvm/CodeGen/LazyMachineBlockFrequencyInfo.h" #include "llvm/CodeGen/MachineBasicBlock.h" -#include "llvm/CodeGen/MachineBlockFrequencyInfo.h" #include "llvm/CodeGen/MachineConstantPool.h" #include "llvm/CodeGen/MachineDominators.h" #include "llvm/CodeGen/MachineFrameInfo.h" @@ -55,7 +52,6 @@ #include "llvm/CodeGen/MachineModuleInfoImpls.h" #include "llvm/CodeGen/MachineOperand.h" #include "llvm/CodeGen/MachineOptimizationRemarkEmitter.h" -#include "llvm/CodeGen/MachineSizeOpts.h" #include "llvm/CodeGen/StackMaps.h" #include "llvm/CodeGen/TargetFrameLowering.h" #include "llvm/CodeGen/TargetInstrInfo.h" @@ -251,8 +247,6 @@ AU.addRequired(); AU.addRequired(); AU.addRequired(); - AU.addRequired(); - AU.addRequired(); } bool AsmPrinter::doInitialization(Module &M) { @@ -1781,13 +1775,6 @@ } ORE = &getAnalysis().getORE(); - PSI = &getAnalysis().getPSI(); - MBFI = (PSI && PSI->hasProfileSummary()) ? - // ORE conditionally computes MBFI. If available, use it, otherwise - // request it. - (ORE->getBFI() ? ORE->getBFI() : - &getAnalysis().getBFI()) : - nullptr; } namespace {