reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/AArch64/AArch64GenDAGISel.inc
114563   case 3: return (!Subtarget->isSTRQroSlow() || MF->getFunction().hasOptSize());
114564   case 4: return (Subtarget->isLittleEndian()) && (!Subtarget->isSTRQroSlow() || MF->getFunction().hasOptSize());
114586   case 26: return (!MF->getFunction().hasOptSize());
114587   case 27: return (!MF->getFunction().hasOptSize()) && (Subtarget->useAlternateSExtLoadCVTF32Pattern());
gen/lib/Target/AArch64/AArch64GenGlobalISel.inc
  112   if (!MF->getFunction().hasOptSize())
  114   if (!Subtarget->isSTRQroSlow() || MF->getFunction().hasOptSize())
gen/lib/Target/X86/X86GenDAGISel.inc
253365   case 9: return (!Subtarget->slowIncDec() || MF->getFunction().hasOptSize());
253366   case 10: return (Subtarget->is64Bit()) && (!Subtarget->slowIncDec() || MF->getFunction().hasOptSize());
253411   case 55: return (MF->getFunction().hasOptSize()) && (Subtarget->hasSSE1() && !Subtarget->hasAVX());
253412   case 56: return (Subtarget->hasAVX()) && (MF->getFunction().hasOptSize());
253467   case 111: return (MF->getFunction().hasOptSize());
253481   case 125: return (MF->getFunction().hasOptSize()) && (Subtarget->hasAVX() && !Subtarget->hasAVX512());
253482   case 126: return (MF->getFunction().hasOptSize() || !Subtarget->hasSSE41()) && (Subtarget->hasSSE1() && !Subtarget->hasAVX());
253483   case 127: return (Subtarget->hasAVX()) && (!MF->getFunction().hasOptSize());
253484   case 128: return (!MF->getFunction().hasOptSize()) && (Subtarget->hasSSE41() && !Subtarget->hasAVX());
253485   case 129: return (Subtarget->hasAVX512()) && (MF->getFunction().hasOptSize());
253486   case 130: return (Subtarget->hasAVX512()) && (!MF->getFunction().hasOptSize());
253513   case 157: return (!Subtarget->is64Bit()) && (MF->getFunction().hasOptSize());
253528   case 172: return (MF->getFunction().hasOptSize()) && (Subtarget->hasSSE41() && !Subtarget->hasAVX());
253533   case 177: return (MF->getFunction().hasOptSize()) && (Subtarget->hasSSE2() && !Subtarget->hasAVX());
253553   case 197: return (MF->getFunction().hasOptSize() || !Subtarget->hasSSE41()) && (Subtarget->hasSSE2() && !Subtarget->hasAVX());
gen/lib/Target/X86/X86GenFastISel.inc
11047   if ((Subtarget->hasAVX512()) && (MF->getFunction().hasOptSize())) {
11050   if ((MF->getFunction().hasOptSize() || !Subtarget->hasSSE41()) && (Subtarget->hasSSE2() && !Subtarget->hasAVX())) {
11053   if ((MF->getFunction().hasOptSize()) && (Subtarget->hasAVX() && !Subtarget->hasAVX512())) {
11071   if ((Subtarget->hasAVX512()) && (MF->getFunction().hasOptSize())) {
11074   if ((MF->getFunction().hasOptSize() || !Subtarget->hasSSE41()) && (Subtarget->hasSSE1() && !Subtarget->hasAVX())) {
11077   if ((MF->getFunction().hasOptSize()) && (Subtarget->hasAVX() && !Subtarget->hasAVX512())) {
gen/lib/Target/X86/X86GenGlobalISel.inc
  379   if (MF->getFunction().hasOptSize())
  383   if (!MF->getFunction().hasOptSize())
  385   if (!Subtarget->slowIncDec() || MF->getFunction().hasOptSize())
  387   if (MF->getFunction().hasOptSize() || !Subtarget->hasSSE41())
include/llvm/CodeGen/TargetLowering.h
 1039     const bool OptForSize = SI->getParent()->getParent()->hasOptSize();
lib/Analysis/InlineCost.cpp
  912   } else if (Caller->hasOptSize())
  930     if (!Caller->hasOptSize() && HotCallSiteThreshold) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2908                             !MF->getFunction().hasOptSize() &&
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1394       !GV.hasOptSize() && !GV.hasOptNone())
lib/CodeGen/BranchFolding.cpp
  730   return EffectiveTailLen >= 2 && MF->getFunction().hasOptSize() &&
 1583       MF.getFunction().hasOptSize()) {
lib/CodeGen/CodeGenPrepare.cpp
  432   OptSize = F.hasOptSize();
 4432   const bool OptSize = I->getFunction()->hasOptSize();
lib/CodeGen/ExpandMemCmp.cpp
  744   auto Options = TTI->enableMemCmpExpansion(CI->getFunction()->hasOptSize(),
  751   if (CI->getFunction()->hasOptSize() &&
  755   if (!CI->getFunction()->hasOptSize() && MaxLoadsPerMemcmp.getNumOccurrences())
lib/CodeGen/GlobalISel/CombinerHelper.cpp
  808   return MF.getFunction().hasOptSize();
lib/CodeGen/MachineBlockPlacement.cpp
 2028   if (F->getFunction().hasOptSize())
 2746       (F->getFunction().hasOptSize() && !TLI->alignLoopsWithOptSize()))
 3021     if (MF.getFunction().hasOptSize())
lib/CodeGen/MachineCombiner.cpp
  642   OptSize = MF.getFunction().hasOptSize();
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  220       ForCodeSize = DAG.getMachineFunction().getFunction().hasOptSize();
12772     if (DAG.getMachineFunction().getFunction().hasOptSize())
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
 3164                           DAG.getMachineFunction().getFunction().hasOptSize()))
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 1430     Alignment = MF->getFunction().hasOptSize()
 5741   return MF.getFunction().hasOptSize();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 5352     if (!F.hasOptSize() ||
lib/CodeGen/TailDuplicator.cpp
  560       MF->getFunction().hasOptSize())
lib/Target/AArch64/AArch64FrameLowering.cpp
  450   if (MF.getFunction().hasOptSize())
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
   55     ForCodeSize = MF.getFunction().hasOptSize();
lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp
  154   AArch64PreLegalizerCombinerInfo PCInfo(EnableOpt, F.hasOptSize(),
lib/Target/ARM/ARMAsmPrinter.cpp
  129   else if (F.hasOptSize())
lib/Target/ARM/ARMBaseInstrInfo.cpp
 2002   if (MBB.getParent()->getFunction().hasOptSize()) {
lib/Target/ARM/ARMTargetTransformInfo.cpp
 1012   if (L->getHeader()->getParent()->hasOptSize())
lib/Target/ARM/ARMTargetTransformInfo.h
   97     if (L->getHeader()->getParent()->hasOptSize())
lib/Target/ARM/Thumb2SizeReduction.cpp
 1130   OptimizeSize = MF.getFunction().hasOptSize();
lib/Target/Hexagon/HexagonFrameLowering.cpp
  383     return F.hasOptSize() && !F.hasMinSize();
lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
   55     ForCodeSize = MF.getFunction().hasOptSize();
lib/Target/X86/X86FixupBWInsts.cpp
  157   OptForSize = MF.getFunction().hasOptSize();
lib/Target/X86/X86FixupLEAs.cpp
  202   bool OptIncDec = !ST.slowIncDec() || MF.getFunction().hasOptSize();
lib/Target/X86/X86ISelDAGToDAG.cpp
  189       OptForSize = MF.getFunction().hasOptSize();
lib/Target/X86/X86ISelLowering.cpp
 8309   bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
11164     bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
18310   bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
18535   bool IsOptimizingSize = DAG.getMachineFunction().getFunction().hasOptSize();
20402       bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
36344   bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
39649   bool OptForSize = DAG.getMachineFunction().getFunction().hasOptSize();
42510     bool CodeSize = DAG.getMachineFunction().getFunction().hasOptSize();
42557   bool CodeSize = DAG.getMachineFunction().getFunction().hasOptSize();
lib/Target/X86/X86InstrInfo.cpp
 1577     if (MI.getParent()->getParent()->getFunction().hasOptSize()) {
 4839   if (!MF.getFunction().hasOptSize() &&
 5010   if (!MF.getFunction().hasOptSize() &&
 5216   if (!MF.getFunction().hasOptSize() &&
lib/Target/X86/X86OptimizeLEAs.cpp
  702     if (MF.getFunction().hasOptSize())
lib/Target/X86/X86PadShortFunction.cpp
  100   if (MF.getFunction().hasOptSize())
lib/Transforms/Scalar/ConstantHoisting.cpp
  554   bool OptForSize = Entry->getParent()->hasOptSize() ||
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  367       L->getHeader()->getParent()->hasOptSize() && UseLIRCodeSizeHeurs;
lib/Transforms/Scalar/LoopLoadElimination.cpp
  546       bool OptForSize = F->hasOptSize() ||
lib/Transforms/Scalar/LoopUnrollPass.cpp
  214   bool OptForSize = L->getHeader()->getParent()->hasOptSize() ||
 1039   bool OptForSize = L->getHeader()->getParent()->hasOptSize();
lib/Transforms/Scalar/MergeICmps.cpp
  869   if (!TTI.enableMemCmpExpansion(F.hasOptSize(), true))
lib/Transforms/Utils/SimplifyLibCalls.cpp
 2718   bool OptForSize = CI->getFunction()->hasOptSize() ||
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  412   bool CanAddPredicate = !TheLoop->getHeader()->getParent()->hasOptSize();
lib/Transforms/Vectorize/LoopVectorize.cpp
 2725   assert(!BB->getParent()->hasOptSize() &&
 2760   if (BB->getParent()->hasOptSize()) {
 7446       (F->hasOptSize() ||