Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCopyToCombine.cpp96 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()
/freebsd-14.2/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.cpp142 bool OptForSize = false; member in __anon69dcfc2d0111::FixupBWInstPass
398 if (!OptForSize) in tryReplaceInstr()
455 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.td223 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;
1380 TB, XS, Requires<[UseSSE2, OptForSize]>,
2848 Requires<[target, OptForSize]>;
2878 let Predicates = [target, OptForSize] in {
2892 let Predicates = [target, OptForSize] in {
2937 let Predicates = [target, OptForSize] in {
5653 let Predicates = [UseAVX, OptForSize] in {
[all …]
H A DX86InstrCompiler.td314 let Predicates = [OptForSize, Not64BitMode],
1628 let AddedComplexity = 1, Predicates=[OptForSize] in {
/freebsd-14.2/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.cpp589 bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions() local
688 } else if (OptForSize && InsInstrs.size() < DelInstrs.size()) { in combineInstructions()
H A DTargetLoweringBase.cpp1697 const bool OptForSize = in isSuitableForJumpTable() local
1700 const unsigned MinDensity = getMinimumJumpTableDensity(OptForSize); in isSuitableForJumpTable()
1705 return (OptForSize || Range <= MaxJumpTableSize) && in isSuitableForJumpTable()
2053 unsigned TargetLoweringBase::getMinimumJumpTableDensity(bool OptForSize) const { in getMinimumJumpTableDensity()
2054 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.cpp2154 bool OptForSize = F->getFunction().hasOptSize() || in findBestLoopTop() local
2156 if (OptForSize) in findBestLoopTop()
3421 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local
3423 if (OptForSize) in runOnMachineFunction()
H A DBranchFolding.cpp643 bool OptForSize = in ProfitableToMerge() local
647 return EffectiveTailLen >= 2 && OptForSize && in ProfitableToMerge()
H A DCodeGenPrepare.cpp5155 bool OptForSize = in FindAllMemoryUses() local
5157 if (!OptForSize) in FindAllMemoryUses()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h156 bool OptForSize; variable
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp221 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || in gatherUnrollingPreferences() local
226 if (OptForSize) { in gatherUnrollingPreferences()
1166 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); in tryToUnrollLoop() local
1177 !OptForSize) in tryToUnrollLoop()
1195 if (OptForSize) in tryToUnrollLoop()
H A DLoopLoadElimination.cpp574 bool OptForSize = F->hasOptSize() || in processLoop() local
577 if (OptForSize) { in processLoop()
H A DConstantHoisting.cpp579 if (!OptForSize || std::distance(S,E) > 100) { in maximizeConstantsInRange()
948 this->OptForSize = Entry.getParent()->hasOptSize() || in runImpl()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h1911 unsigned getMinimumJumpTableDensity(bool OptForSize) const;
2362 bool isBeneficialToExpandPowI(int64_t Exponent, bool OptForSize) const { in isBeneficialToExpandPowI() argument
2366 return !OptForSize || (llvm::popcount(E) + Log2_64(E) < 7); in isBeneficialToExpandPowI()
4271 bool LegalOps, bool OptForSize,
4276 SDValue Op, SelectionDAG &DAG, bool LegalOps, bool OptForSize,
4281 getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
4297 bool LegalOps, bool OptForSize,
4299 return getCheaperOrNeutralNegatedExpression(Op, DAG, LegalOps, OptForSize,
4306 bool OptForSize, unsigned Depth = 0) const {
4308 return getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1399 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeMemChr() local
1413 if (OptForSize || Str.empty() || !isOnlyUsedInZeroEqualityComparison(CI)) in optimizeMemChr()
3111 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeSPrintFString() local
3114 if (OptForSize) in optimizeSPrintFString()
3424 bool OptForSize = CI->getFunction()->hasOptSize() || in optimizeFPuts() local
3427 if (OptForSize) in optimizeFPuts()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp7139 OptForSize); in getNegatedExpression()
7168 OptForSize); in getNegatedExpression()
7199 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7207 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7255 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7263 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7300 getNegatedExpression(Z, DAG, LegalOps, OptForSize, CostZ, Depth); in getNegatedExpression()
7311 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7319 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7347 OptForSize, Cost, Depth)) in getNegatedExpression()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h818 bool OptForSize, NegatibleCost &Cost,
H A DPPCISelLowering.cpp17429 bool LegalOps, bool OptForSize, in getNegatedExpression() argument
17452 getNegatedExpression(N2, DAG, LegalOps, OptForSize, N2Cost, Depth + 1); in getNegatedExpression()
17464 SDValue NegN0 = getNegatedExpression(N0, DAG, LegalOps, OptForSize, in getNegatedExpression()
17468 SDValue NegN1 = getNegatedExpression(N1, DAG, LegalOps, OptForSize, in getNegatedExpression()
17489 return TargetLowering::getNegatedExpression(Op, DAG, LegalOps, OptForSize, in getNegatedExpression()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp2670 bool OptForSize = shouldOptForSize(&MF); in select() local
2675 EVT::getFloatingPointVT(DefSize), OptForSize)) in select()

12