Home
last modified time | relevance | path

Searched refs:OptForSize (Results 1 – 25 of 27) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCopyToCombine.cpp100 bool OptForSize);
476 bool OptForSize = F.hasFnAttribute(Attribute::OptimizeForSize); in runOnMachineFunction() local
483 if (!OptForSize && ST->isTinyCore()) in runOnMachineFunction()
515 MachineInstr *I2 = findPairable(I1, DoInsertAtI1, OptForSize); in runOnMachineFunction()
518 combine(I1, *I2, MI, DoInsertAtI1, OptForSize); in runOnMachineFunction()
581 bool DoInsertAtI1, bool OptForSize) { in combine() argument
618 bool IsC64 = OptForSize && LoOperand.isImm() && HiOperand.isImm() && in combine()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineCombiner.cpp93 bool doSubstitute(unsigned NewSize, unsigned OldSize, bool OptForSize);
446 bool OptForSize) { in doSubstitute() argument
447 if (OptForSize && (NewSize < OldSize)) in doSubstitute()
558 bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions() local
661 doSubstitute(NewInstCount, OldInstCount, OptForSize)) { in combineInstructions()
H A DExpandMemCmp.cpp762 bool OptForSize = CI->getFunction()->hasOptSize() || in expandMemCmp() local
764 auto Options = TTI->enableMemCmpExpansion(OptForSize, in expandMemCmp()
771 if (OptForSize && in expandMemCmp()
775 if (!OptForSize && MaxLoadsPerMemcmp.getNumOccurrences()) in expandMemCmp()
H A DBranchFolding.cpp645 bool OptForSize = in ProfitableToMerge() local
649 return EffectiveTailLen >= 2 && OptForSize && in ProfitableToMerge()
1507 bool OptForSize = in OptimizeBlock() local
1510 if (!IsEmptyBlock(MBB) && MBB->pred_size() == 1 && OptForSize) { in OptimizeBlock()
H A DTargetLoweringBase.cpp1631 const bool OptForSize = in isSuitableForJumpTable() local
1634 const unsigned MinDensity = getMinimumJumpTableDensity(OptForSize); in isSuitableForJumpTable()
1639 return (OptForSize || Range <= MaxJumpTableSize) && in isSuitableForJumpTable()
2008 unsigned TargetLoweringBase::getMinimumJumpTableDensity(bool OptForSize) const { in getMinimumJumpTableDensity()
2009 return OptForSize ? OptsizeJumpTableDensity : JumpTableDensity; in getMinimumJumpTableDensity()
H A DTailDuplicator.cpp572 bool OptForSize = MF->getFunction().hasOptSize() || in shouldTailDuplicate() local
578 if (OptForSize) in shouldTailDuplicate()
H A DMachineBlockPlacement.cpp2119 bool OptForSize = F->getFunction().hasOptSize() || in findBestLoopTop() local
2121 if (OptForSize) in findBestLoopTop()
3351 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local
3353 if (OptForSize) in runOnMachineFunction()
H A DCodeGenPrepare.cpp4917 bool OptForSize = OptSize || in FindAllMemoryUses() local
4919 if (!OptForSize) in FindAllMemoryUses()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupBWInsts.cpp143 bool OptForSize = false; member in __anon2cc750ab0111::FixupBWInstPass
400 if (ML->begin() == ML->end() && !OptForSize) in tryReplaceInstr()
457 OptForSize = MF.getFunction().hasOptSize() || in processBasicBlock()
H A DX86PadShortFunction.cpp138 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction() local
139 if (OptForSize) in runOnMachineFunction()
H A DX86OptimizeLEAs.cpp745 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local
747 if (OptForSize) in runOnMachineFunction()
H A DX86InstrSSE.td212 let Predicates = [UseAVX, OptForSize] in
295 let Predicates = [UseAVX, OptForSize] in {
1272 XD, Requires<[UseSSE2, OptForSize]>,
1322 Requires<[UseAVX, OptForSize]>, SIMD_EXC;
1338 XS, Requires<[UseSSE2, OptForSize]>,
2806 Requires<[target, OptForSize]>;
2837 let Predicates = [target, OptForSize] in {
2851 let Predicates = [target, OptForSize] in {
2896 let Predicates = [target, OptForSize] in {
5585 let Predicates = [UseAVX, OptForSize] in {
[all …]
H A DX86InstrCompiler.td298 let Predicates = [OptForSize, Not64BitMode],
1612 let AddedComplexity = 1, Predicates=[OptForSize] in {
H A DX86InstrAVX512.td3913 let Predicates = [HasAVX512, OptForSize] in
4335 let Predicates = [HasAVX512, OptForSize] in {
7533 Requires<[HasAVX512, OptForSize]>;
8988 let Predicates = [HasAVX512, OptForSize] in {
9054 let Predicates = [HasAVX512, OptForSize] in {
H A DX86ISelLowering.cpp8999 bool OptForSize = DAG.shouldOptForSize(); in lowerBuildVectorAsBroadcast() local
9007 if (ConstSplatVal && (Subtarget.hasAVX2() || OptForSize)) { in lowerBuildVectorAsBroadcast()
9016 (OptForSize && (ScalarSize == 64 || Subtarget.hasAVX2()))) { in lowerBuildVectorAsBroadcast()
12221 bool OptForSize = DAG.shouldOptForSize(); in lowerShuffleAsBlend() local
12222 if (!OptForSize) { in lowerShuffleAsBlend()
19737 bool OptForSize = DAG.shouldOptForSize(); in LowerFunnelShift() local
19738 bool ExpandFunnel = !OptForSize && Subtarget.isSHLDSlow(); in LowerFunnelShift()
22793 bool OptForSize = DAG.shouldOptForSize(); in LowerAndToBT() local
22794 if ((!isUInt<32>(AndRHSVal) || (OptForSize && !isUInt<8>(AndRHSVal))) && in LowerAndToBT()
35798 bool OptForSize = DAG.shouldOptForSize(); in combineX86ShuffleChain() local
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp220 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || in gatherUnrollingPreferences() local
225 if (OptForSize) { in gatherUnrollingPreferences()
1077 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); in tryToUnrollLoop() local
1091 !OptForSize) in tryToUnrollLoop()
1109 if (OptForSize) in tryToUnrollLoop()
H A DLoopLoadElimination.cpp552 bool OptForSize = F->hasOptSize() || in processLoop() local
555 if (OptForSize) { in processLoop()
H A DConstantHoisting.cpp571 bool OptForSize = Entry->getParent()->hasOptSize() || in maximizeConstantsInRange() local
574 if (!OptForSize || std::distance(S,E) > 100) { in maximizeConstantsInRange()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h1727 unsigned getMinimumJumpTableDensity(bool OptForSize) const;
3662 bool LegalOps, bool OptForSize,
3669 bool LegalOps, bool OptForSize,
3673 getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
3685 bool OptForSize, unsigned Depth = 0) const {
3687 return getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationLegality.cpp427 bool OptForSize = F->hasOptSize() || in isConsecutivePtr() local
430 bool CanAddPredicate = !OptForSize; in isConsecutivePtr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2531 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeSPrintFString() local
2534 if (OptForSize) in optimizeSPrintFString()
2791 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeFPuts() local
2794 if (OptForSize) in optimizeFPuts()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp6057 OptForSize); in getNegatedExpression()
6086 OptForSize); in getNegatedExpression()
6117 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
6125 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
6173 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
6181 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
6218 getNegatedExpression(Z, DAG, LegalOps, OptForSize, CostZ, Depth); in getNegatedExpression()
6229 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
6237 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
6265 OptForSize, Cost, Depth)) in getNegatedExpression()
[all …]
H A DSelectionDAGBuilder.cpp5362 bool OptForSize = DAG.shouldOptForSize(); in ExpandPowI() local
5363 if (!OptForSize || in ExpandPowI()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h786 bool OptForSize, NegatibleCost &Cost,
H A DPPCISelLowering.cpp16449 bool LegalOps, bool OptForSize, in getNegatedExpression() argument
16472 getNegatedExpression(N2, DAG, LegalOps, OptForSize, N2Cost, Depth + 1); in getNegatedExpression()
16484 SDValue NegN0 = getNegatedExpression(N0, DAG, LegalOps, OptForSize, in getNegatedExpression()
16488 SDValue NegN1 = getNegatedExpression(N1, DAG, LegalOps, OptForSize, in getNegatedExpression()
16509 return TargetLowering::getNegatedExpression(Op, DAG, LegalOps, OptForSize, in getNegatedExpression()

12