13#ifndef LLVM_CODEGEN_MACHINESIZEOPTS_H
14#define LLVM_CODEGEN_MACHINESIZEOPTS_H
20class ProfileSummaryInfo;
21class MachineBasicBlock;
22class MachineBlockFrequencyInfo;
29 const MachineBlockFrequencyInfo *BFI,
34 ProfileSummaryInfo *PSI,
35 const MachineBlockFrequencyInfo *MBFI,
40 ProfileSummaryInfo *PSI,
41 MBFIWrapper *MBFIWrapper,
This is an optimization pass for GlobalISel generic memory operations.
bool shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI, const MachineBlockFrequencyInfo *BFI, PGSOQueryType QueryType=PGSOQueryType::Other)
Returns true if machine function MF is suggested to be size-optimized based on the profile.