Home
last modified time | relevance | path

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

123

/external/llvm/lib/Target/X86/
DX86FixupBWInsts.cpp138 bool OptForSize; member in __anon034626400111::FixupBWInstPass
159 OptForSize = MF.getFunction()->optForSize(); in runOnMachineFunction()
290 if (ML->begin() == ML->end() && !OptForSize) { in tryReplaceInstr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineCombiner.cpp91 bool doSubstitute(unsigned NewSize, unsigned OldSize, bool OptForSize);
420 bool OptForSize) { in doSubstitute() argument
421 if (OptForSize && (NewSize < OldSize)) in doSubstitute()
519 bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions() local
598 doSubstitute(NewInstCount, OldInstCount, OptForSize)) { in combineInstructions()
DExpandMemCmp.cpp749 bool OptForSize = CI->getFunction()->hasOptSize() || in expandMemCmp() local
751 auto Options = TTI->enableMemCmpExpansion(OptForSize, in expandMemCmp()
758 if (OptForSize && in expandMemCmp()
762 if (!OptForSize && MaxLoadsPerMemcmp.getNumOccurrences()) in expandMemCmp()
DTargetLoweringBase.cpp1450 const bool OptForSize = in isSuitableForJumpTable() local
1453 const unsigned MinDensity = getMinimumJumpTableDensity(OptForSize); in isSuitableForJumpTable()
1458 return (OptForSize || Range <= MaxJumpTableSize) && in isSuitableForJumpTable()
1809 unsigned TargetLoweringBase::getMinimumJumpTableDensity(bool OptForSize) const { in getMinimumJumpTableDensity()
1810 return OptForSize ? OptsizeJumpTableDensity : JumpTableDensity; in getMinimumJumpTableDensity()
DBranchFolding.cpp692 bool OptForSize = in ProfitableToMerge() local
696 return EffectiveTailLen >= 2 && OptForSize && in ProfitableToMerge()
1548 bool OptForSize = in OptimizeBlock() local
1551 if (!IsEmptyBlock(MBB) && MBB->pred_size() == 1 && OptForSize) { in OptimizeBlock()
DTailDuplicator.cpp565 bool OptForSize = MF->getFunction().hasOptSize() || in shouldTailDuplicate() local
571 if (OptForSize) in shouldTailDuplicate()
/external/llvm-project/llvm/lib/CodeGen/
DMachineCombiner.cpp91 bool doSubstitute(unsigned NewSize, unsigned OldSize, bool OptForSize);
424 bool OptForSize) { in doSubstitute() argument
425 if (OptForSize && (NewSize < OldSize)) in doSubstitute()
523 bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions() local
602 doSubstitute(NewInstCount, OldInstCount, OptForSize)) { in combineInstructions()
DExpandMemCmp.cpp731 bool OptForSize = CI->getFunction()->hasOptSize() || in expandMemCmp() local
733 auto Options = TTI->enableMemCmpExpansion(OptForSize, in expandMemCmp()
740 if (OptForSize && in expandMemCmp()
744 if (!OptForSize && MaxLoadsPerMemcmp.getNumOccurrences()) in expandMemCmp()
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()
DTargetLoweringBase.cpp1634 const bool OptForSize = in isSuitableForJumpTable() local
1637 const unsigned MinDensity = getMinimumJumpTableDensity(OptForSize); in isSuitableForJumpTable()
1642 return (OptForSize || Range <= MaxJumpTableSize) && in isSuitableForJumpTable()
2002 unsigned TargetLoweringBase::getMinimumJumpTableDensity(bool OptForSize) const { in getMinimumJumpTableDensity()
2003 return OptForSize ? OptsizeJumpTableDensity : JumpTableDensity; in getMinimumJumpTableDensity()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86PadShortFunction.cpp137 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction() local
138 if (OptForSize) in runOnMachineFunction()
DX86FixupBWInsts.cpp141 bool OptForSize = false; member in __anonbac087a20111::FixupBWInstPass
383 if (ML->begin() == ML->end() && !OptForSize) in tryReplaceInstr()
440 OptForSize = MF.getFunction().hasOptSize() || in processBasicBlock()
DX86OptimizeLEAs.cpp716 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local
718 if (OptForSize) in runOnMachineFunction()
/external/llvm-project/llvm/lib/Target/X86/
DX86PadShortFunction.cpp138 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction() local
139 if (OptForSize) in runOnMachineFunction()
DX86FixupBWInsts.cpp141 bool OptForSize = false; member in __anone45a0b2e0111::FixupBWInstPass
382 if (ML->begin() == ML->end() && !OptForSize) in tryReplaceInstr()
439 OptForSize = MF.getFunction().hasOptSize() || in processBasicBlock()
DX86OptimizeLEAs.cpp716 bool OptForSize = MF.getFunction().hasOptSize() || in runOnMachineFunction() local
718 if (OptForSize) in runOnMachineFunction()
/external/llvm-project/llvm/lib/Target/Hexagon/
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()
/external/llvm/lib/Target/Hexagon/
DHexagonCopyToCombine.cpp102 bool OptForSize);
453 bool OptForSize = F->hasFnAttribute(Attribute::OptimizeForSize); in runOnMachineFunction() local
488 MachineInstr *I2 = findPairable(I1, DoInsertAtI1, OptForSize); in runOnMachineFunction()
491 combine(I1, *I2, MI, DoInsertAtI1, OptForSize); in runOnMachineFunction()
556 bool DoInsertAtI1, bool OptForSize) { in combine() argument
584 bool IsC64 = OptForSize && LoOperand.isImm() && HiOperand.isImm() && in combine()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonCopyToCombine.cpp98 bool OptForSize);
474 bool OptForSize = F.hasFnAttribute(Attribute::OptimizeForSize); in runOnMachineFunction() local
509 MachineInstr *I2 = findPairable(I1, DoInsertAtI1, OptForSize); in runOnMachineFunction()
512 combine(I1, *I2, MI, DoInsertAtI1, OptForSize); in runOnMachineFunction()
575 bool DoInsertAtI1, bool OptForSize) { in combine() argument
612 bool IsC64 = OptForSize && LoOperand.isImm() && HiOperand.isImm() && in combine()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnrollPass.cpp215 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || in gatherUnrollingPreferences() local
218 if (OptForSize) { in gatherUnrollingPreferences()
1041 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); in tryToUnrollLoop() local
1054 !OptForSize) in tryToUnrollLoop()
1072 if (OptForSize) in tryToUnrollLoop()
DLoopLoadElimination.cpp547 bool OptForSize = F->hasOptSize() || in processLoop() local
550 if (OptForSize) { in processLoop()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopUnrollPass.cpp220 bool OptForSize = L->getHeader()->getParent()->hasOptSize() || in gatherUnrollingPreferences() local
223 if (OptForSize) { in gatherUnrollingPreferences()
1049 bool OptForSize = L->getHeader()->getParent()->hasOptSize(); in tryToUnrollLoop() local
1063 !OptForSize) in tryToUnrollLoop()
1081 if (OptForSize) in tryToUnrollLoop()
DLoopLoadElimination.cpp554 bool OptForSize = F->hasOptSize() || in processLoop() local
557 if (OptForSize) { in processLoop()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1620 VectorizationFactor selectVectorizationFactor(bool OptForSize);
1631 unsigned selectInterleaveCount(bool OptForSize, unsigned VF,
1638 unsigned computeInterleaveCount(bool OptForSize, unsigned VF,
5163 LoopVectorizationCostModel::selectVectorizationFactor(bool OptForSize) { in selectVectorizationFactor() argument
5166 if (OptForSize && Legal->getRuntimePointerChecking()->Need) { in selectVectorizationFactor()
5223 if (MaximizeBandwidth && !OptForSize) { in selectVectorizationFactor()
5245 if (OptForSize) { in selectVectorizationFactor()
5374 unsigned LoopVectorizationCostModel::selectInterleaveCount(bool OptForSize, in selectInterleaveCount() argument
5393 if (OptForSize) in selectInterleaveCount()
6441 bool OptForSize = in processLoop() local
[all …]
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DLoopVectorizationLegality.cpp423 bool OptForSize = F->hasOptSize() || in isConsecutivePtr() local
426 bool CanAddPredicate = !OptForSize; in isConsecutivePtr()

123