| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonCopyToCombine.cpp | 96 bool OptForSize); 466 bool OptForSize = F.hasFnAttribute(Attribute::OptimizeForSize); in runOnMachineFunction() local 473 if (!OptForSize && ST->isTinyCore()) in runOnMachineFunction() 504 MachineInstr *I2 = findPairable(I1, DoInsertAtI1, OptForSize); in runOnMachineFunction() 507 combine(I1, *I2, MI, DoInsertAtI1, OptForSize); in runOnMachineFunction() 570 bool DoInsertAtI1, bool OptForSize) { in combine() argument 607 bool IsC64 = OptForSize && LoOperand.isImm() && HiOperand.isImm() && in combine()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86PadShortFunction.cpp | 136 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction() local 137 if (OptForSize) in runOnMachineFunction()
|
| H A D | X86FixupBWInsts.cpp | 143 bool OptForSize = false; member in __anon7f6449270111::FixupBWInstPass 400 if (!OptForSize) in tryReplaceInstr() 457 OptForSize = MF.getFunction().hasOptSize() || in processBasicBlock()
|
| H A D | X86OptimizeLEAs.cpp | 742 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local 744 if (OptForSize) in runOnMachineFunction()
|
| H A D | X86InstrSSE.td | 215 let Predicates = [UseAVX, OptForSize] in 298 let Predicates = [UseAVX, OptForSize] in { 1303 XD, Requires<[UseSSE2, OptForSize]>, 1353 Requires<[UseAVX, OptForSize]>, SIMD_EXC; 1369 XS, Requires<[UseSSE2, OptForSize]>, 2837 Requires<[target, OptForSize]>; 2867 let Predicates = [target, OptForSize] in { 2881 let Predicates = [target, OptForSize] in { 2926 let Predicates = [target, OptForSize] in { 5635 let Predicates = [UseAVX, OptForSize] in { [all …]
|
| H A D | X86InstrCompiler.td | 305 let Predicates = [OptForSize, Not64BitMode], 1653 let AddedComplexity = 1, Predicates=[OptForSize] in {
|
| H A D | X86InstrAVX512.td | 4101 let Predicates = !if (!eq (prd, HasFP16), [HasFP16], [prd, OptForSize]) in 4601 let Predicates = [HasAVX512, OptForSize] in { 7935 Requires<[HasAVX512, OptForSize]>; 7946 Requires<[HasFP16, OptForSize]>; 7953 Requires<[HasFP16, OptForSize]>; 9668 let Predicates = [prd, OptForSize] in { 9736 let Predicates = [HasAVX512, OptForSize] in {
|
| H A D | X86ISelLowering.cpp | 9705 bool OptForSize = DAG.shouldOptForSize(); in lowerBuildVectorAsBroadcast() local 9713 if (ConstSplatVal && (Subtarget.hasAVX2() || OptForSize)) { in lowerBuildVectorAsBroadcast() 9724 (OptForSize && (ScalarSize == 64 || Subtarget.hasAVX2()))) { in lowerBuildVectorAsBroadcast() 12944 bool OptForSize = DAG.shouldOptForSize(); in lowerShuffleAsBlend() local 12945 if (!OptForSize) { in lowerShuffleAsBlend() 24041 bool OptForSize = DAG.shouldOptForSize(); in LowerAndToBT() local 24042 if ((!isUInt<32>(AndRHSVal) || (OptForSize && !isUInt<8>(AndRHSVal))) && in LowerAndToBT() 30517 bool OptForSize = DAG.shouldOptForSize(); in LowerFunnelShift() local 30518 bool ExpandFunnel = !OptForSize && Subtarget.isSHLDSlow(); in LowerFunnelShift() 37921 bool OptForSize = DAG.shouldOptForSize(); in combineX86ShuffleChain() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineCombiner.cpp | 92 bool doSubstitute(unsigned NewSize, unsigned OldSize, bool OptForSize); 486 bool OptForSize) { in doSubstitute() argument 487 if (OptForSize && (NewSize < OldSize)) in doSubstitute() 598 bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions() local 701 doSubstitute(NewInstCount, OldInstCount, OptForSize)) { in combineInstructions()
|
| H A D | ExpandMemCmp.cpp | 765 bool OptForSize = CI->getFunction()->hasOptSize() || in expandMemCmp() local 767 auto Options = TTI->enableMemCmpExpansion(OptForSize, in expandMemCmp() 774 if (OptForSize && in expandMemCmp() 778 if (!OptForSize && MaxLoadsPerMemcmp.getNumOccurrences()) in expandMemCmp()
|
| H A D | BranchFolding.cpp | 649 bool OptForSize = in ProfitableToMerge() local 653 return EffectiveTailLen >= 2 && OptForSize && in ProfitableToMerge() 1510 bool OptForSize = in OptimizeBlock() local 1513 if (!IsEmptyBlock(MBB) && MBB->pred_size() == 1 && OptForSize) { in OptimizeBlock()
|
| H A D | TargetLoweringBase.cpp | 1632 const bool OptForSize = in isSuitableForJumpTable() local 1635 const unsigned MinDensity = getMinimumJumpTableDensity(OptForSize); in isSuitableForJumpTable() 1640 return (OptForSize || Range <= MaxJumpTableSize) && in isSuitableForJumpTable() 2021 unsigned TargetLoweringBase::getMinimumJumpTableDensity(bool OptForSize) const { in getMinimumJumpTableDensity() 2022 return OptForSize ? OptsizeJumpTableDensity : JumpTableDensity; in getMinimumJumpTableDensity()
|
| H A D | TailDuplicator.cpp | 567 bool OptForSize = MF->getFunction().hasOptSize() || in shouldTailDuplicate() local 573 if (OptForSize) in shouldTailDuplicate()
|
| H A D | MachineBlockPlacement.cpp | 2141 bool OptForSize = F->getFunction().hasOptSize() || in findBestLoopTop() local 2143 if (OptForSize) in findBestLoopTop() 3386 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local 3388 if (OptForSize) in runOnMachineFunction()
|
| H A D | CodeGenPrepare.cpp | 4930 bool OptForSize = OptSize || in FindAllMemoryUses() local 4932 if (!OptForSize) in FindAllMemoryUses()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopUnrollPass.cpp | 220 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || in gatherUnrollingPreferences() local 225 if (OptForSize) { in gatherUnrollingPreferences() 1174 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); in tryToUnrollLoop() local 1188 !OptForSize) in tryToUnrollLoop() 1214 if (OptForSize) in tryToUnrollLoop()
|
| H A D | LoopLoadElimination.cpp | 551 bool OptForSize = F->hasOptSize() || in processLoop() local 554 if (OptForSize) { in processLoop()
|
| H A D | ConstantHoisting.cpp | 579 bool OptForSize = Entry->getParent()->hasOptSize() || in maximizeConstantsInRange() local 582 if (!OptForSize || std::distance(S,E) > 100) { in maximizeConstantsInRange()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | TargetLowering.h | 1781 unsigned getMinimumJumpTableDensity(bool OptForSize) const; 2207 bool isBeneficialToExpandPowI(int Exponent, bool OptForSize) const { in isBeneficialToExpandPowI() argument 2210 return !OptForSize || in isBeneficialToExpandPowI() 3954 bool LegalOps, bool OptForSize, 3961 bool LegalOps, bool OptForSize, 3965 getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth); 3977 bool OptForSize, unsigned Depth = 0) const { 3979 return getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorizationLegality.cpp | 454 bool OptForSize = F->hasOptSize() || in isConsecutivePtr() local 457 bool CanAddPredicate = !OptForSize; in isConsecutivePtr()
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopVectorize/ |
| H A D | optsize.ll | 91 ; with OptForSize.
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 6708 OptForSize); in getNegatedExpression() 6737 OptForSize); in getNegatedExpression() 6768 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression() 6776 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression() 6824 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression() 6832 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression() 6869 getNegatedExpression(Z, DAG, LegalOps, OptForSize, CostZ, Depth); in getNegatedExpression() 6880 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression() 6888 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression() 6916 OptForSize, Cost, Depth)) in getNegatedExpression() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 2856 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeSPrintFString() local 2859 if (OptForSize) in optimizeSPrintFString() 3122 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeFPuts() local 3125 if (OptForSize) in optimizeFPuts()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.h | 820 bool OptForSize, NegatibleCost &Cost,
|
| H A D | PPCISelLowering.cpp | 16855 bool LegalOps, bool OptForSize, in getNegatedExpression() argument 16878 getNegatedExpression(N2, DAG, LegalOps, OptForSize, N2Cost, Depth + 1); in getNegatedExpression() 16890 SDValue NegN0 = getNegatedExpression(N0, DAG, LegalOps, OptForSize, in getNegatedExpression() 16894 SDValue NegN1 = getNegatedExpression(N1, DAG, LegalOps, OptForSize, in getNegatedExpression() 16915 return TargetLowering::getNegatedExpression(Op, DAG, LegalOps, OptForSize, in getNegatedExpression()
|