Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCopyToCombine.cpp89 bool OptForSize);
460 bool OptForSize = F.hasFnAttribute(Attribute::OptimizeForSize); in runOnMachineFunction() local
467 if (!OptForSize && ST->isTinyCore()) in runOnMachineFunction()
498 MachineInstr *I2 = findPairable(I1, DoInsertAtI1, OptForSize); in runOnMachineFunction()
501 combine(I1, *I2, MI, DoInsertAtI1, OptForSize); in runOnMachineFunction()
564 bool DoInsertAtI1, bool OptForSize) { in combine() argument
601 bool IsC64 = OptForSize && LoOperand.isImm() && HiOperand.isImm() && in combine()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupBWInsts.cpp138 bool OptForSize = false; member in __anon46e815f70111::FixupBWInstPass
388 if (!OptForSize) in tryReplaceInstr()
445 OptForSize = llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()
H A DX86InstrPredicates.td229 def OptForSize : Predicate<"shouldOptForSize(MF)">;
H A DX86InstrSSE.td215 let Predicates = [UseAVX, OptForSize] in
297 let Predicates = [UseAVX, OptForSize] in {
1314 TB, XD, Requires<[UseSSE2, OptForSize]>,
1364 Requires<[UseAVX, OptForSize]>, SIMD_EXC;
1370 (VCVTSS2SDrm (f64 (IMPLICIT_DEF)), addr:$src)>, Requires<[UseAVX, OptForSize]>;
1380 TB, XS, Requires<[UseSSE2, OptForSize]>,
2861 Requires<[target, OptForSize]>;
2891 let Predicates = [target, OptForSize] in {
2905 let Predicates = [target, OptForSize] in {
2950 let Predicates = [target, OptForSize] in {
[all …]
H A DX86InstrCompiler.td330 let Predicates = [OptForSize, Not64BitMode],
1697 let AddedComplexity = 1, Predicates=[OptForSize] in {
H A DX86InstrAVX512.td3907 let Predicates = !if (!eq (prd, HasFP16), [HasFP16], [prd, OptForSize]) in
4397 let Predicates = [HasAVX512, OptForSize] in {
7739 Requires<[HasAVX512, OptForSize]>;
7750 Requires<[HasFP16, OptForSize]>;
7757 Requires<[HasFP16, OptForSize]>;
9582 let Predicates = [prd, OptForSize] in {
9650 let Predicates = [HasAVX512, OptForSize] in {
H A DX86ISelLowering.cpp7788 bool OptForSize = DAG.shouldOptForSize(); in lowerBuildVectorAsBroadcast() local
7796 if (ConstSplatVal && (Subtarget.hasAVX2() || OptForSize)) { in lowerBuildVectorAsBroadcast()
7807 (OptForSize && (ScalarSize == 64 || Subtarget.hasAVX2()))) { in lowerBuildVectorAsBroadcast()
11270 bool OptForSize = DAG.shouldOptForSize(); in lowerShuffleAsBlend() local
11271 if (!OptForSize) { in lowerShuffleAsBlend()
23752 bool OptForSize = DAG.shouldOptForSize(); in LowerAndToBT() local
23753 if ((!isUInt<32>(AndRHSVal) || (OptForSize && !isUInt<8>(AndRHSVal))) && in LowerAndToBT()
31330 bool OptForSize = DAG.shouldOptForSize(); in LowerFunnelShift() local
31331 bool ExpandFunnel = !OptForSize && Subtarget.isSHLDSlow(); in LowerFunnelShift()
39984 bool OptForSize = DAG.shouldOptForSize(); in combineX86ShuffleChain() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp855 bool OptForSize = llvm::shouldOptimizeForSize(CI->getParent(), PSI, BFI); in expandMemCmp() local
856 auto Options = TTI->enableMemCmpExpansion(OptForSize, in expandMemCmp()
863 if (OptForSize && in expandMemCmp()
867 if (!OptForSize && MaxLoadsPerMemcmp.getNumOccurrences()) in expandMemCmp()
H A DMachineBlockPlacement.cpp614 void applyExtTsp(bool OptForSize);
3592 const bool OptForSize = in run() local
3603 UseExtTspForSize = OptForSize && ApplyExtTspForSize; in run()
3608 if (OptForSize) in run()
3680 void MachineBlockPlacement::applyExtTsp(bool OptForSize) { in applyExtTsp() argument
3700 BlockCounts[BlockIndex[&MBB]] = OptForSize ? 1 : BlockFreq.getFrequency(); in applyExtTsp()
3713 if (OptForSize) { in applyExtTsp()
3764 if (OptForSize && OrgScore > OptScore) in applyExtTsp()
H A DMachineCombiner.cpp571 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions() local
670 } else if (OptForSize && InsInstrs.size() < DelInstrs.size()) { in combineInstructions()
H A DTargetLoweringBase.cpp1716 const bool OptForSize = in isSuitableForJumpTable() local
1718 const unsigned MinDensity = getMinimumJumpTableDensity(OptForSize); in isSuitableForJumpTable()
1723 return (OptForSize || Range <= MaxJumpTableSize) && in isSuitableForJumpTable()
2086 unsigned TargetLoweringBase::getMinimumJumpTableDensity(bool OptForSize) const { in getMinimumJumpTableDensity()
2087 return OptForSize ? OptsizeJumpTableDensity : JumpTableDensity; in getMinimumJumpTableDensity()
H A DBranchFolding.cpp673 bool OptForSize = llvm::shouldOptimizeForSize(MBB1, PSI, &MBBFreqInfo) && in ProfitableToMerge() local
675 return EffectiveTailLen >= 2 && OptForSize && in ProfitableToMerge()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h158 bool OptForSize; variable
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp228 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || in gatherUnrollingPreferences() local
233 if (OptForSize) { in gatherUnrollingPreferences()
1214 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); in tryToUnrollLoop() local
1225 !OptForSize) in tryToUnrollLoop()
1242 if (OptForSize) in tryToUnrollLoop()
H A DConstantHoisting.cpp560 if (!OptForSize || std::distance(S,E) > 100) { in maximizeConstantsInRange()
929 this->OptForSize = llvm::shouldOptimizeForSize(Entry.getParent(), PSI, BFI, in runImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h2045 unsigned getMinimumJumpTableDensity(bool OptForSize) const;
2513 bool isBeneficialToExpandPowI(int64_t Exponent, bool OptForSize) const { in isBeneficialToExpandPowI() argument
2517 return !OptForSize || (llvm::popcount(E) + Log2_64(E) < 7); in isBeneficialToExpandPowI()
4580 bool LegalOps, bool OptForSize,
4585 SDValue Op, SelectionDAG &DAG, bool LegalOps, bool OptForSize,
4590 getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
4606 bool LegalOps, bool OptForSize,
4608 return getCheaperOrNeutralNegatedExpression(Op, DAG, LegalOps, OptForSize,
4615 bool OptForSize, unsigned Depth = 0) const {
4617 return getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h842 bool OptForSize, NegatibleCost &Cost,
H A DPPCISelLowering.cpp18549 bool LegalOps, bool OptForSize, in getNegatedExpression() argument
18572 getNegatedExpression(N2, DAG, LegalOps, OptForSize, N2Cost, Depth + 1); in getNegatedExpression()
18584 SDValue NegN0 = getNegatedExpression(N0, DAG, LegalOps, OptForSize, in getNegatedExpression()
18588 SDValue NegN1 = getNegatedExpression(N1, DAG, LegalOps, OptForSize, in getNegatedExpression()
18609 return TargetLowering::getNegatedExpression(Op, DAG, LegalOps, OptForSize, in getNegatedExpression()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp7454 bool LegalOps, bool OptForSize, in getNegatedExpression() argument
7501 OptForSize); in getNegatedExpression()
7530 OptForSize); in getNegatedExpression()
7561 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7569 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7617 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7625 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7662 getNegatedExpression(Z, DAG, LegalOps, OptForSize, CostZ, Depth); in getNegatedExpression()
7673 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7681 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp926 OptForSize = llvm::shouldOptimizeForSize(L->getHeader(), PSI, BFI, in LoopVectorizationCostModel()
1738 bool OptForSize; member in llvm::LoopVectorizationCostModel
4315 if (CM.OptForSize && !ForceVectorization && hasReplicatorRegion(*P)) { in selectVectorizationFactor()
7039 if (CM.OptForSize && !ForceVectorization && hasReplicatorRegion(*P)) { in computeBestVF()
9306 assert((!CM.OptForSize || in attachRuntimeChecks()
9319 if (CM.OptForSize) { in attachRuntimeChecks()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1402 bool OptForSize = llvm::shouldOptimizeForSize(CI->getParent(), PSI, BFI, in optimizeMemChr() local
1415 if (OptForSize || Str.empty() || !isOnlyUsedInZeroEqualityComparison(CI)) in optimizeMemChr()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp2788 bool OptForSize = shouldOptForSize(&MF); in select() local
2793 EVT::getFloatingPointVT(DefSize), OptForSize)) in select()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7753 bool OptForSize = MI.getMF()->getFunction().hasOptSize(); in matchFPowIExpansion() local
7754 return getTargetLowering().isBeneficialToExpandPowI(Exponent, OptForSize); in matchFPowIExpansion()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp12095 bool OptForSize) const { in isFPImmLegal()
12130 unsigned Limit = (OptForSize ? 1 : (Subtarget->hasFuseLiterals() ? 4 : 2)); in isFPImmLegal()
28644 bool OptForSize = MF.getFunction().hasOptSize(); in shouldLocalize() local
28646 OptForSize)) in shouldLocalize()