Home
last modified time | relevance | path

Searched refs:BlockFrequency (Results 1 – 25 of 31) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DBlockFrequency.cpp18 BlockFrequency &BlockFrequency::operator*=(BranchProbability Prob) { in operator *=()
23 BlockFrequency BlockFrequency::operator*(BranchProbability Prob) const { in operator *()
24 BlockFrequency Freq(Frequency); in operator *()
29 BlockFrequency &BlockFrequency::operator/=(BranchProbability Prob) { in operator /=()
34 BlockFrequency BlockFrequency::operator/(BranchProbability Prob) const { in operator /()
35 BlockFrequency Freq(Frequency); in operator /()
40 BlockFrequency &BlockFrequency::operator+=(BlockFrequency Freq) { in operator +=()
51 BlockFrequency BlockFrequency::operator+(BlockFrequency Freq) const { in operator +()
52 BlockFrequency NewFreq(Frequency); in operator +()
57 BlockFrequency &BlockFrequency::operator-=(BlockFrequency Freq) { in operator -=()
[all …]
DCMakeLists.txt70 BlockFrequency.cpp
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DBlockFrequency.h24 class BlockFrequency {
28 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency()
39 BlockFrequency &operator*=(BranchProbability Prob);
40 BlockFrequency operator*(BranchProbability Prob) const;
44 BlockFrequency &operator/=(BranchProbability Prob);
45 BlockFrequency operator/(BranchProbability Prob) const;
48 BlockFrequency &operator+=(BlockFrequency Freq);
49 BlockFrequency operator+(BlockFrequency Freq) const;
52 BlockFrequency &operator-=(BlockFrequency Freq);
53 BlockFrequency operator-(BlockFrequency Freq) const;
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSpillPlacement.cpp81 BlockFrequency BiasN;
84 BlockFrequency BiasP;
91 using LinkVector = SmallVector<std::pair<BlockFrequency, unsigned>, 4>;
98 BlockFrequency SumLinkWeights;
116 void clear(const BlockFrequency &Threshold) { in clear()
123 void addLink(unsigned b, BlockFrequency w) { in addLink()
138 void addBias(BlockFrequency freq, BorderConstraint direction) { in addBias()
149 BiasN = BlockFrequency::getMaxFrequency(); in addBias()
156 bool update(const Node nodes[], const BlockFrequency &Threshold) { in update()
158 BlockFrequency SumN = BiasN; in update()
[all …]
DMachineBlockPlacement.cpp330 BlockFrequency Weight;
464 BlockFrequency TopFallThroughFreq(const MachineBasicBlock *Top,
466 BlockFrequency FallThroughGains(const MachineBasicBlock *NewTop,
476 BlockFrequency &ExitFreq);
481 BlockFrequency ExitFreq, const BlockFilterSet &LoopBlockSet);
731 static bool greaterWithBias(BlockFrequency A, BlockFrequency B, in greaterWithBias()
734 BlockFrequency Gain = A - B; in greaterWithBias()
778 BlockFrequency P = BBFreq * PProb; in isProfitableToTailDup()
779 BlockFrequency Qout = BBFreq * QProb; in isProfitableToTailDup()
800 auto SuccBestPred = BlockFrequency(0); in isProfitableToTailDup()
[all …]
DSpillPlacement.h63 SmallVector<BlockFrequency, 8> BlockFrequencies;
67 BlockFrequency Threshold;
152 BlockFrequency getBlockFrequency(unsigned Number) const { in getBlockFrequency()
162 void setThreshold(const BlockFrequency &Entry);
DBranchFolding.h142 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
143 void setBlockFreq(const MachineBasicBlock *MBB, BlockFrequency F);
147 const BlockFrequency Freq) const;
154 DenseMap<const MachineBasicBlock *, BlockFrequency> MergedBBFreq;
DRegAllocGreedy.cpp401 BlockFrequency CSRCost;
449 BlockFrequency calcSpillCost();
450 bool addSplitConstraints(InterferenceCache::Cursor, BlockFrequency&);
459 BlockFrequency calcGlobalSplitCost(GlobalSplitCandidate &,
493 BlockFrequency &BestCost,
526 BlockFrequency Freq;
533 HintInfo(BlockFrequency Freq, unsigned Reg, unsigned PhysReg) in HintInfo()
538 BlockFrequency getBrokenHintFreq(const HintsInfo &, unsigned);
1187 BlockFrequency &Cost) { in addSplitConstraints()
1192 BlockFrequency StaticCost = 0; in addSplitConstraints()
[all …]
DMachineBlockFrequencyInfo.cpp227 BlockFrequency
260 const BlockFrequency Freq) const { in printBlockFreq()
DBranchFolding.cpp504 BlockFrequency
515 BlockFrequency F) { in setBlockFreq()
527 const BlockFrequency Freq) const { in printBlockFreq()
1190 SmallVector<BlockFrequency, 2> EdgeFreqLs(TailMBB.succ_size()); in setCommonTailEdgeWeights()
1191 BlockFrequency AccumulatedMBBFreq; in setCommonTailEdgeWeights()
1198 BlockFrequency BlockFreq = MBBFreqInfo.getBlockFreq(SrcMBB); in setCommonTailEdgeWeights()
1219 std::accumulate(EdgeFreqLs.begin(), EdgeFreqLs.end(), BlockFrequency(0)) in setCommonTailEdgeWeights()
DInlineSpiller.cpp1341 std::pair<SmallPtrSet<MachineDomTreeNode *, 16>, BlockFrequency>; in runHoistSpills()
1375 BlockFrequency &SubTreeCost = SpillsInSubTreeMap[*RIt].second; in runHoistSpills()
1385 BlockFrequency &SubTreeCost = SpillsInSubTreeMap[*RIt].second; in runHoistSpills()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineBlockFrequencyInfo.h62 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
75 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DBlockFrequencyInfo.h65 BlockFrequency getBlockFreq(const BasicBlock *BB) const;
97 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
DBlockFrequencyInfoImpl.h521 BlockFrequency getBlockFreq(const BlockNode &Node) const;
534 const BlockFrequency &Freq) const;
968 BlockFrequency getBlockFreq(const BlockT *BB) const {
1398 BlockFrequency Freq = Graph->getBlockFreq(Node);
1399 BlockFrequency HotFreq =
1400 (BlockFrequency(MaxFrequency) *
1459 BlockFrequency EFreq = BFI->getBlockFreq(Node) * BP;
1460 BlockFrequency HotFreq = BlockFrequency(MaxFrequency) *
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DCodeExtractor.h27 class BlockFrequency; variable
223 DenseMap<BasicBlock *, BlockFrequency> &ExitWeights,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopSink.cpp83 static BlockFrequency adjustedSumFreq(SmallPtrSetImpl<BasicBlock *> &BBs, in adjustedSumFreq()
85 BlockFrequency T = 0; in adjustedSumFreq()
265 const BlockFrequency PreheaderFreq = BFI.getBlockFreq(Preheader); in sinkLoopInvariantInstructions()
DConstantHoisting.cpp261 std::pair<SetVector<BasicBlock *>, BlockFrequency>; in findBestInsertionSet()
271 BlockFrequency &InsertPtsFreq = InsertPtsMap[Node].second; in findBestInsertionSet()
288 BlockFrequency &ParentPtsFreq = InsertPtsMap[Parent].second; in findBestInsertionSet()
DJumpThreading.cpp2151 DenseMap<BasicBlock *, BlockFrequency> FreqMap; in SplitBlockPreds()
2169 BlockFrequency NewBBFreq(0); in SplitBlockPreds()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DBlockFrequencyInfo.cpp202 BlockFrequency BlockFrequencyInfo::getBlockFreq(const BasicBlock *BB) const { in getBlockFreq()
269 printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const { in printBlockFreq()
DBlockFrequencyInfoImpl.cpp551 BlockFrequency
623 const BlockFrequency &Freq) const { in printBlockFreq()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DRegBankSelect.h78 class BlockFrequency; variable
442 MappingCost(const BlockFrequency &LocalFreq);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DBreakCriticalEdges.cpp411 BlockFrequency BlockFreqForDirectSucc; in SplitIndirectBrCriticalEdges()
423 BlockFrequency NewBlockFreqForTarget = in SplitIndirectBrCriticalEdges()
DCodeExtractor.cpp1342 DenseMap<BasicBlock *, BlockFrequency> &ExitWeights, in calculateNewCallTerminatorWeights()
1397 BlockFrequency EntryFreq; in extractCodeRegion()
1423 DenseMap<BasicBlock *, BlockFrequency> ExitWeights; in extractCodeRegion()
1431 BlockFrequency &BF = ExitWeights[*SI]; in extractCodeRegion()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DPartialInlining.cpp288 BlockFrequency WeightedOutliningRcost,
763 BlockFrequency WeightedOutliningRcost, in shouldPartialInline()
817 BlockFrequency NormWeightedSavings(NonWeightedSavings); in shouldPartialInline()
1338 BlockFrequency WeightedRcost; in tryPartialInline()
1355 WeightedRcost = BlockFrequency(NonWeightedRcost) * RelativeToEntryFreq; in tryPartialInline()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp938 RegBankSelect::MappingCost::MappingCost(const BlockFrequency &LocalFreq) in MappingCost()

12