Home
last modified time | relevance | path

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

12

/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()
/llvm-project/llvm/lib/Target/X86/
H A DX86FixupBWInsts.cpp138 /// Local member for function's OptForSize attribute.
139 bool OptForSize = false; member in __anona79e2fea0111::FixupBWInstPass
389 if (!OptForSize) in tryReplaceInstr()
446 OptForSize = llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()
H A DX86PadShortFunction.cpp136 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); runOnMachineFunction() local
H A DX86OptimizeLEAs.cpp744 bool OptForSize = MF.getFunction().hasOptSize() || runOnMachineFunction() local
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] i
[all...]
H A DX86InstrCompiler.td324 let Predicates = [OptForSize, Not64BitMode],
1685 let AddedComplexity = 1, Predicates=[OptForSize] in {
/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 DMachineCombiner.cpp571 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions()
670 } else if (OptForSize && InsInstrs.size() < DelInstrs.size()) { in combineInstructions()
671 LLVM_DEBUG(dbgs() << "\t Replacing due to OptForSize (" in combineInstructions()
574 bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI); combineInstructions() local
H A DTargetLoweringBase.cpp1641 const bool OptForSize = in computeRegisterProperties()
1643 const unsigned MinDensity = getMinimumJumpTableDensity(OptForSize); in computeRegisterProperties()
1648 return (OptForSize || Range <= MaxJumpTableSize) && in computeRegisterProperties()
2005 unsigned TargetLoweringBase::getMinimumJumpTableDensity(bool OptForSize) const { in InstructionOpcodeToISD()
2006 return OptForSize ? OptsizeJumpTableDensity : JumpTableDensity; in InstructionOpcodeToISD()
1806 const bool OptForSize = isSuitableForJumpTable() local
H A DTailDuplicator.cpp590 bool OptForSize = MF->getFunction().hasOptSize() || shouldTailDuplicate() local
H A DMachineBlockPlacement.cpp603 void applyExtTsp(bool OptForSize);
3517 const bool OptForSize = in runOnMachineFunction()
3528 UseExtTspForSize = OptForSize && ApplyExtTspForSize; in runOnMachineFunction()
3534 if (OptForSize) in runOnMachineFunction()
3581 applyExtTsp(/*OptForSize=*/UseExtTspForSize); in applyExtTsp()
3606 void MachineBlockPlacement::applyExtTsp(bool OptForSize) { in applyExtTsp()
3626 BlockCounts[BlockIndex[&MBB]] = OptForSize ? 1 : BlockFreq.getFrequency(); in applyExtTsp()
3639 if (OptForSize) { in assignBlockOrder()
3690 if (OptForSize && OrgScore > OptScore) in createCFGChainExtTsp()
2190 bool OptForSize = F->getFunction().hasOptSize() || findBestLoopTop() local
3475 bool OptForSize = MF.getFunction().hasOptSize() || runOnMachineFunction() local
H A DBranchFolding.cpp648 bool OptForSize = llvm::shouldOptimizeForSize(MBB1, PSI, &MBBFreqInfo) && in ProfitableToMerge()
650 return EffectiveTailLen >= 2 && OptForSize && in ProfitableToMerge()
646 bool OptForSize = ProfitableToMerge() local
H A DCodeGenPrepare.cpp5259 bool OptForSize = FindAllMemoryUses() local
/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp229 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || in gatherUnrollingPreferences()
234 if (OptForSize) { in gatherUnrollingPreferences()
1215 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); in tryToUnrollLoop()
1223 // Exit early if unrolling is disabled. For OptForSize, we pick the loop size in tryToUnrollLoop()
1226 !OptForSize) in tryToUnrollLoop()
1243 if (OptForSize) in tryToUnrollLoop()
227 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || gatherUnrollingPreferences() local
1213 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); tryToUnrollLoop() local
H A DLoopLoadElimination.cpp590 bool OptForSize = F->hasOptSize() || processLoop() local
H A DConstantHoisting.cpp563 if (!OptForSize || std::distance(S,E) > 100) {
932 this->OptForSize = llvm::shouldOptimizeForSize(Entry.getParent(), PSI, BFI, in emitBaseConstants()
/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h158 bool OptForSize; variable
/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h2005 unsigned getMinimumJumpTableDensity(bool OptForSize) const; in getExceptionPointerRegister()
2465 bool isBeneficialToExpandPowI(int64_t Exponent, bool OptForSize) const {
2469 return !OptForSize || (llvm::popcount(E) + Log2_64(E) < 7);
4427 bool LegalOps, bool OptForSize,
4432 SDValue Op, SelectionDAG &DAG, bool LegalOps, bool OptForSize,
4437 getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cost, Depth);
4453 bool LegalOps, bool OptForSize, in splitValueIntoRegisterParts()
4455 return getCheaperOrNeutralNegatedExpression(Op, DAG, LegalOps, OptForSize, in splitValueIntoRegisterParts()
4462 bool OptForSize, unsigned Depth = 0) const {
4464 return getNegatedExpression(Op, DAG, LegalOps, OptForSize, Cos
2438 isBeneficialToExpandPowI(int64_t Exponent,bool OptForSize) isBeneficialToExpandPowI() argument
[all...]
/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationLegality.cpp463 bool OptForSize = F->hasOptSize() || isConsecutivePtr() local
/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1400 bool OptForSize = llvm::shouldOptimizeForSize(CI->getParent(), PSI, BFI, in optimizeMemChr()
1413 if (OptForSize || Str.empty() || !isOnlyUsedInZeroEqualityComparison(CI)) in optimizeMemChr()
1407 bool OptForSize = CI->getFunction()->hasOptSize() || optimizeMemChr() local
3316 bool OptForSize = CI->getFunction()->hasOptSize() || optimizeSPrintFString() local
3629 bool OptForSize = CI->getFunction()->hasOptSize() || optimizeFPuts() local
/llvm-project/llvm/test/Transforms/LoopVectorize/
H A Doptsize.ll250 ; with OptForSize.
/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp7296 bool LegalOps, bool OptForSize, in getNegatedExpression()
7343 OptForSize); in getNegatedExpression()
7372 OptForSize); in getNegatedExpression()
7403 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7411 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7459 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in getNegatedExpression()
7467 getNegatedExpression(Y, DAG, LegalOps, OptForSize, CostY, Depth); in getNegatedExpression()
7504 getNegatedExpression(Z, DAG, LegalOps, OptForSize, CostZ, Depth); in expandMUL_LOHI()
7515 getNegatedExpression(X, DAG, LegalOps, OptForSize, CostX, Depth); in expandMUL_LOHI()
7523 getNegatedExpression(Y, DAG, LegalOps, OptForSize, Cost in expandMUL_LOHI()
7167 getNegatedExpression(SDValue Op,SelectionDAG & DAG,bool LegalOps,bool OptForSize,NegatibleCost & Cost,unsigned Depth) const getNegatedExpression() argument
[all...]
/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h836 bool OptForSize, NegatibleCost &Cost,
/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7589 bool OptForSize = MI.getMF()->getFunction().hasOptSize();
7590 return getTargetLowering().isBeneficialToExpandPowI(Exponent, OptForSize);
7358 bool OptForSize = MI.getMF()->getFunction().hasOptSize(); matchFPowIExpansion() local

12