Home
last modified time | relevance | path

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

/external/llvm/lib/Support/
DBlockFrequency.cpp20 BlockFrequency &BlockFrequency::operator*=(BranchProbability Prob) { in operator *=()
25 BlockFrequency BlockFrequency::operator*(BranchProbability Prob) const { in operator *()
26 BlockFrequency Freq(Frequency); in operator *()
31 BlockFrequency &BlockFrequency::operator/=(BranchProbability Prob) { in operator /=()
36 BlockFrequency BlockFrequency::operator/(BranchProbability Prob) const { in operator /()
37 BlockFrequency Freq(Frequency); in operator /()
42 BlockFrequency &BlockFrequency::operator+=(BlockFrequency Freq) { in operator +=()
53 BlockFrequency BlockFrequency::operator+(BlockFrequency Freq) const { in operator +()
54 BlockFrequency NewFreq(Frequency); in operator +()
59 BlockFrequency &BlockFrequency::operator-=(BlockFrequency Freq) { in operator -=()
[all …]
DAndroid.mk13 BlockFrequency.cpp \
DCMakeLists.txt38 BlockFrequency.cpp
/external/llvm/include/llvm/Support/
DBlockFrequency.h25 class BlockFrequency {
29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency()
40 BlockFrequency &operator*=(BranchProbability Prob);
41 BlockFrequency operator*(BranchProbability Prob) const;
45 BlockFrequency &operator/=(BranchProbability Prob);
46 BlockFrequency operator/(BranchProbability Prob) const;
49 BlockFrequency &operator+=(BlockFrequency Freq);
50 BlockFrequency operator+(BlockFrequency Freq) const;
53 BlockFrequency &operator-=(BlockFrequency Freq);
54 BlockFrequency operator-(BlockFrequency Freq) const;
[all …]
/external/llvm/unittests/Support/
DBlockFrequencyTest.cpp21 BlockFrequency Freq(1); in TEST()
26 Freq = BlockFrequency(1); in TEST()
32 BlockFrequency Freq(1); in TEST()
37 Freq = BlockFrequency(1); in TEST()
43 BlockFrequency Freq(3); in TEST()
48 Freq = BlockFrequency(3); in TEST()
54 BlockFrequency Freq(UINT64_MAX); in TEST()
59 Freq = BlockFrequency(UINT64_MAX); in TEST()
67 BlockFrequency Freq(Big); in TEST()
72 Freq = BlockFrequency(Big); in TEST()
[all …]
/external/llvm/lib/CodeGen/
DSpillPlacement.cpp74 BlockFrequency BiasN;
76 BlockFrequency BiasP;
83 typedef SmallVector<std::pair<BlockFrequency, unsigned>, 4> LinkVector;
90 BlockFrequency SumLinkWeights;
108 void clear(const BlockFrequency &Threshold) { in clear()
115 void addLink(unsigned b, BlockFrequency w) { in addLink()
130 void addBias(BlockFrequency freq, BorderConstraint direction) { in addBias()
141 BiasN = BlockFrequency::getMaxFrequency(); in addBias()
148 bool update(const Node nodes[], const BlockFrequency &Threshold) { in update()
150 BlockFrequency SumN = BiasN; in update()
[all …]
DSpillPlacement.h63 SmallVector<BlockFrequency, 8> BlockFrequencies;
67 BlockFrequency Threshold;
149 BlockFrequency getBlockFrequency(unsigned Number) const { in getBlockFrequency()
159 void setThreshold(const BlockFrequency &Entry);
DMachineBlockPlacement.cpp471 BlockFrequency CandidateEdgeFreq = in selectBestSuccessor()
478 BlockFrequency PredEdgeFreq = in selectBestSuccessor()
528 BlockFrequency BestFreq; in selectBestCandidateBlock()
537 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
650 BlockFrequency BestPredFreq; in findBestLoopTop()
661 BlockFrequency PredFreq = MBFI->getBlockFreq(Pred); in findBestLoopTop()
704 BlockFrequency BestExitEdgeFreq; in findBestLoopExit()
726 BlockFrequency OldBestExitEdgeFreq = BestExitEdgeFreq; in findBestLoopExit()
756 BlockFrequency ExitEdgeFreq = MBFI->getBlockFreq(MBB) * SuccProb; in findBestLoopExit()
860 BlockFrequency SmallestRotationCost = BlockFrequency::getMaxFrequency(); in rotateLoopWithProfile()
[all …]
DBranchFolding.h106 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
107 void setBlockFreq(const MachineBasicBlock *MBB, BlockFrequency F);
111 DenseMap<const MachineBasicBlock *, BlockFrequency> MergedBBFreq;
DRegAllocGreedy.cpp306 BlockFrequency CSRCost;
347 BlockFrequency calcSpillCost();
348 bool addSplitConstraints(InterferenceCache::Cursor, BlockFrequency&);
351 BlockFrequency calcGlobalSplitCost(GlobalSplitCandidate&);
373 BlockFrequency &BestCost,
404 BlockFrequency Freq;
410 HintInfo(BlockFrequency Freq, unsigned Reg, unsigned PhysReg) in HintInfo()
414 BlockFrequency getBrokenHintFreq(const HintsInfo &, unsigned);
933 BlockFrequency &Cost) { in addSplitConstraints()
938 BlockFrequency StaticCost = 0; in addSplitConstraints()
[all …]
DMachineBlockFrequencyInfo.cpp170 BlockFrequency MachineBlockFrequencyInfo::
181 const BlockFrequency Freq) const { in printBlockFreq()
DBranchFolding.cpp525 BlockFrequency
536 BlockFrequency F) { in setBlockFreq()
1074 SmallVector<BlockFrequency, 2> EdgeFreqLs(TailMBB.succ_size()); in setCommonTailEdgeWeights()
1075 BlockFrequency AccumulatedMBBFreq; in setCommonTailEdgeWeights()
1082 BlockFrequency BlockFreq = MBBFreqInfo.getBlockFreq(SrcMBB); in setCommonTailEdgeWeights()
1103 std::accumulate(EdgeFreqLs.begin(), EdgeFreqLs.end(), BlockFrequency(0)) in setCommonTailEdgeWeights()
DLiveIntervalAnalysis.cpp844 BlockFrequency Freq = MBFI->getBlockFreq(MI->getParent()); in getSpillWeight()
/external/llvm/include/llvm/CodeGen/
DMachineBlockFrequencyInfo.h51 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
58 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
DLiveIntervalAnalysis.h41 class BlockFrequency; variable
/external/llvm/include/llvm/Analysis/
DBlockFrequencyInfo.h46 BlockFrequency getBlockFreq(const BasicBlock *BB) const;
57 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
DBlockFrequencyInfoImpl.h478 BlockFrequency getBlockFreq(const BlockNode &Node) const;
484 const BlockFrequency &Freq) const;
915 BlockFrequency getBlockFreq(const BlockT *BB) const {
/external/llvm/lib/Analysis/
DBlockFrequencyInfo.cpp128 BlockFrequency BlockFrequencyInfo::getBlockFreq(const BasicBlock *BB) const { in getBlockFreq()
155 printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const { in printBlockFreq()
DBlockFrequencyInfoImpl.cpp520 BlockFrequency
557 const BlockFrequency &Freq) const { in printBlockFreq()
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp180 BlockFrequency ColdEntryFreq;
454 ColdEntryFreq = BlockFrequency(BFI.getEntryFreq()) * ColdProb; in runOnLoop()
527 BlockFrequency LoopEntryFreq = BFI.getBlockFreq(loopHeader); in processCurrentLoop()
DJumpThreading.cpp1604 BlockFrequency PredBBFreq(0); in SplitBlockPreds()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1616 BlockFrequency ColdEntryFreq;
1634 ColdEntryFreq = BlockFrequency(BFI->getEntryFreq()) * ColdProb; in runOnFunction()
1782 BlockFrequency LoopEntryFreq = BFI->getBlockFreq(L->getLoopPreheader()); in processLoop()