Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCopyToCombine.cpp96 bool OptForSize);
467 bool OptForSize = F.hasFnAttribute(Attribute::OptimizeForSize); in runOnMachineFunction() local
474 if (!OptForSize && ST->isTinyCore()) in runOnMachineFunction()
505 MachineInstr *I2 = findPairable(I1, DoInsertAtI1, OptForSize); in runOnMachineFunction()
508 combine(I1, *I2, MI, DoInsertAtI1, OptForSize); in runOnMachineFunction()
571 bool DoInsertAtI1, bool OptForSize) { in combine() argument
608 bool IsC64 = OptForSize && LoOperand.isImm() && HiOperand.isImm() && in combine()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PadShortFunction.cpp136 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction() local
137 if (OptForSize) in runOnMachineFunction()
H A DX86FixupBWInsts.cpp139 bool OptForSize = false; member in __anon46e815f70111::FixupBWInstPass
389 if (!OptForSize) in tryReplaceInstr()
446 OptForSize = MF.getFunction().hasOptSize() || in processBasicBlock()
H A DX86OptimizeLEAs.cpp744 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local
746 if (OptForSize) in runOnMachineFunction()
H A DX86InstrPredicates.td219 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.td315 let Predicates = [OptForSize, Not64BitMode],
1676 let AddedComplexity = 1, Predicates=[OptForSize] in {
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp855 bool OptForSize = CI->getFunction()->hasOptSize() || in expandMemCmp() local
857 auto Options = TTI->enableMemCmpExpansion(OptForSize, in expandMemCmp()
864 if (OptForSize && in expandMemCmp()
868 if (!OptForSize && MaxLoadsPerMemcmp.getNumOccurrences()) in expandMemCmp()
H A DMachineCombiner.cpp574 bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions() local
673 } else if (OptForSize && InsInstrs.size() < DelInstrs.size()) { in combineInstructions()
H A DTargetLoweringBase.cpp1617 const bool OptForSize = in isSuitableForJumpTable() local
1620 const unsigned MinDensity = getMinimumJumpTableDensity(OptForSize); in isSuitableForJumpTable()
1625 return (OptForSize || Range <= MaxJumpTableSize) && in isSuitableForJumpTable()
1979 unsigned TargetLoweringBase::getMinimumJumpTableDensity(bool OptForSize) const { in getMinimumJumpTableDensity()
1980 return OptForSize ? OptsizeJumpTableDensity : JumpTableDensity; in getMinimumJumpTableDensity()
H A DTailDuplicator.cpp589 bool OptForSize = MF->getFunction().hasOptSize() || in shouldTailDuplicate() local
595 if (OptForSize) in shouldTailDuplicate()
H A DMachineBlockPlacement.cpp2190 bool OptForSize = F->getFunction().hasOptSize() || in findBestLoopTop() local
2192 if (OptForSize) in findBestLoopTop()
3475 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local
3477 if (OptForSize) in runOnMachineFunction()
H A DBranchFolding.cpp649 bool OptForSize = in ProfitableToMerge() local
653 return EffectiveTailLen >= 2 && OptForSize && in ProfitableToMerge()
H A DCodeGenPrepare.cpp5259 bool OptForSize = in FindAllMemoryUses() local
5261 if (!OptForSize) in FindAllMemoryUses()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp227 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || in gatherUnrollingPreferences() local
232 if (OptForSize) { in gatherUnrollingPreferences()
1213 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); in tryToUnrollLoop() local
1224 !OptForSize) in tryToUnrollLoop()
1241 if (OptForSize) in tryToUnrollLoop()
H A DLoopLoadElimination.cpp590 bool OptForSize = F->hasOptSize() || in processLoop() local
593 if (OptForSize) { in processLoop()
H A DConstantHoisting.cpp584 if (!OptForSize || std::distance(S,E) > 100) { in maximizeConstantsInRange()
956 this->OptForSize = Entry.getParent()->hasOptSize() || in runImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h158 bool OptForSize; variable
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h1988 unsigned getMinimumJumpTableDensity(bool OptForSize) const;
2439 bool isBeneficialToExpandPowI(int64_t Exponent, bool OptForSize) const { in isBeneficialToExpandPowI() argument
2443 return !OptForSize || (llvm::popcount(E) + Log2_64(E) < 7); in isBeneficialToExpandPowI()
4405 bool LegalOps, bool OptForSize,
4410 SDValue Op, SelectionDAG &DAG, bool LegalOps, bool OptForSize,
4415 getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
4431 bool LegalOps, bool OptForSize,
4433 return getCheaperOrNeutralNegatedExpression(Op, DAG, LegalOps, OptForSize,
4440 bool OptForSize, unsigned Depth = 0) const {
4442 return getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationLegality.cpp463 bool OptForSize = F->hasOptSize() || in isConsecutivePtr() local
466 bool CanAddPredicate = !OptForSize; in isConsecutivePtr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1408 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeMemChr() local
1422 if (OptForSize || Str.empty() || !isOnlyUsedInZeroEqualityComparison(CI)) in optimizeMemChr()
3345 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeSPrintFString() local
3348 if (OptForSize) in optimizeSPrintFString()
3658 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeFPuts() local
3661 if (OptForSize) in optimizeFPuts()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp7235 bool LegalOps, bool OptForSize, in getNegatedExpression() argument
7282 OptForSize); in getNegatedExpression()
7311 OptForSize); in getNegatedExpression()
7342 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7350 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7398 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7406 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7443 getNegatedExpression(Z, DAG, LegalOps, OptForSize, CostZ, Depth); in getNegatedExpression()
7454 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7462 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h829 bool OptForSize, NegatibleCost &Cost,
H A DPPCISelLowering.cpp17641 bool LegalOps, bool OptForSize, in getNegatedExpression() argument
17664 getNegatedExpression(N2, DAG, LegalOps, OptForSize, N2Cost, Depth + 1); in getNegatedExpression()
17676 SDValue NegN0 = getNegatedExpression(N0, DAG, LegalOps, OptForSize, in getNegatedExpression()
17680 SDValue NegN1 = getNegatedExpression(N1, DAG, LegalOps, OptForSize, in getNegatedExpression()
17701 return TargetLowering::getNegatedExpression(Op, DAG, LegalOps, OptForSize, in getNegatedExpression()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7414 bool OptForSize = MI.getMF()->getFunction().hasOptSize(); in matchFPowIExpansion() local
7415 return getTargetLowering().isBeneficialToExpandPowI(Exponent, OptForSize); in matchFPowIExpansion()

12