Home
last modified time | relevance | path

Searched refs:Freq (Results 1 – 25 of 26) sorted by relevance

12

/external/llvm/unittests/Support/
DBlockFrequencyTest.cpp21 BlockFrequency Freq(1); in TEST() local
23 Freq *= Prob; in TEST()
24 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
26 Freq = BlockFrequency(1); in TEST()
27 Freq *= Prob; in TEST()
28 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
32 BlockFrequency Freq(1); in TEST() local
34 Freq *= Prob; in TEST()
35 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
37 Freq = BlockFrequency(1); in TEST()
[all …]
/external/llvm/lib/Support/
DBlockFrequency.cpp26 BlockFrequency Freq(Frequency); in operator *() local
27 Freq *= Prob; in operator *()
28 return Freq; in operator *()
37 BlockFrequency Freq(Frequency); in operator /() local
38 Freq /= Prob; in operator /()
39 return Freq; in operator /()
42 BlockFrequency &BlockFrequency::operator+=(BlockFrequency Freq) { in operator +=() argument
43 uint64_t Before = Freq.Frequency; in operator +=()
44 Frequency += Freq.Frequency; in operator +=()
53 BlockFrequency BlockFrequency::operator+(BlockFrequency Freq) const { in operator +()
[all …]
/external/lzma/C/
DPpmd7.c312 s->Freq = 1; in RestartModel()
380 upState.Freq = ONE_STATE(c)->Freq; in CreateSuccessors()
386 cf = s->Freq - 1; in CreateSuccessors()
388 … upState.Freq = (Byte)(1 + ((2 * cf <= s0) ? (5 * cf > s0) : ((2 * cf + 3 * s0 - 1) / (2 * s0)))); in CreateSuccessors()
429 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel()
436 if (s->Freq < 32) in UpdateModel()
437 s->Freq++; in UpdateModel()
445 if (s[0].Freq >= s[-1].Freq) in UpdateModel()
451 if (s->Freq < MAX_FREQ - 9) in UpdateModel()
453 s->Freq += 2; in UpdateModel()
[all …]
DPpmd7Dec.c89 if ((count = rc->GetThreshold(rc, p->MinContext->SummFreq)) < (hiCnt = s->Freq)) in Ppmd7_DecodeSymbol()
92 rc->Decode(rc, 0, s->Freq); in Ppmd7_DecodeSymbol()
102 if ((hiCnt += (++s)->Freq) > count) in Ppmd7_DecodeSymbol()
105 rc->Decode(rc, hiCnt - s->Freq, s->Freq); in Ppmd7_DecodeSymbol()
160 hiCnt += (s->Freq & k); in Ppmd7_DecodeSymbol()
174 for (hiCnt = 0; (hiCnt += (*pps)->Freq) <= count; pps++); in Ppmd7_DecodeSymbol()
176 rc->Decode(rc, hiCnt - s->Freq, s->Freq); in Ppmd7_DecodeSymbol()
DPpmd7Enc.c89 RangeEnc_Encode(rc, 0, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
95 sum = s->Freq; in Ppmd7_EncodeSymbol()
101 RangeEnc_Encode(rc, sum, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
106 sum += s->Freq; in Ppmd7_EncodeSymbol()
168 sum += (s->Freq & (int)(MASK(s->Symbol))); in Ppmd7_EncodeSymbol()
172 RangeEnc_Encode(rc, low, s1->Freq, sum + escFreq); in Ppmd7_EncodeSymbol()
178 sum += (s->Freq & (int)(MASK(cur))); in Ppmd7_EncodeSymbol()
DPpmd.h48 Byte Freq; member
DPpmd7.h89 &p->BinSumm[Ppmd7Context_OneState(p->MinContext)->Freq - 1][p->PrevSuccess + \
/external/llvm/include/llvm/Support/
DBlockFrequency.h29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency() argument
49 BlockFrequency &operator+=(BlockFrequency Freq);
50 BlockFrequency operator+(BlockFrequency Freq) const;
53 BlockFrequency &operator-=(BlockFrequency Freq);
54 BlockFrequency operator-(BlockFrequency Freq) const;
/external/llvm/lib/CodeGen/
DSpillPlacement.cpp234 uint64_t Freq = Entry.getFrequency(); in setThreshold() local
235 uint64_t Scaled = (Freq >> 13) + bool(Freq & (1 << 12)); in setThreshold()
244 BlockFrequency Freq = BlockFrequencies[I->Number]; in addConstraints() local
250 nodes[ib].addBias(Freq, I->Entry); in addConstraints()
257 nodes[ob].addBias(Freq, I->Exit); in addConstraints()
266 BlockFrequency Freq = BlockFrequencies[*I]; in addPrefSpill() local
268 Freq += Freq; in addPrefSpill()
273 nodes[ib].addBias(Freq, PrefSpill); in addPrefSpill()
274 nodes[ob].addBias(Freq, PrefSpill); in addPrefSpill()
294 BlockFrequency Freq = BlockFrequencies[Number]; in addLinks() local
[all …]
DMachineBlockFrequencyInfo.cpp181 const BlockFrequency Freq) const { in printBlockFreq()
182 return MBFI ? MBFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
DMachineBlockPlacement.cpp864 auto ScaleBlockFrequency = [](BlockFrequency Freq, in rotateLoopWithProfile()
870 return Freq / BranchProbability(1, Scale); in rotateLoopWithProfile()
1012 auto Freq = MBFI->getBlockFreq(LoopBB).getFrequency(); in collectLoopBlockSet() local
1013 if (Freq == 0 || LoopFreq.getFrequency() / Freq > LoopToColdBlockRatio) in collectLoopBlockSet()
1338 BlockFrequency Freq = MBFI->getBlockFreq(ChainBB); in buildCFGChains() local
1339 if (Freq < WeightedEntryFreq) in buildCFGChains()
1346 if (Freq < (LoopHeaderFreq * ColdProb)) in buildCFGChains()
1368 if (LayoutEdgeFreq <= (Freq * ColdProb)) in buildCFGChains()
DRegAllocGreedy.cpp404 BlockFrequency Freq; member
410 HintInfo(BlockFrequency Freq, unsigned Reg, unsigned PhysReg) in HintInfo()
411 : Freq(Freq), Reg(Reg), PhysReg(PhysReg) {} in HintInfo()
2336 Cost += Info.Freq; in getBrokenHintFreq()
DLiveIntervalAnalysis.cpp844 BlockFrequency Freq = MBFI->getBlockFreq(MI->getParent()); in getSpillWeight() local
846 return (isDef + isUse) * (Freq.getFrequency() * Scale); in getSpillWeight()
/external/opencv3/3rdparty/zlib/
Dtrees.c415 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
416 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
417 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
419 s->dyn_ltree[END_BLOCK].Freq = 1;
444 (tree[n].Freq < tree[m].Freq || \
445 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
524 f = tree[n].Freq;
559 *(long)tree[m].Freq;
635 if (tree[n].Freq != 0) {
650 tree[node].Freq = 1;
[all …]
Ddeflate.h76 #define Freq fc.freq macro
327 s->dyn_ltree[cc].Freq++; \
336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
337 s->dyn_dtree[d_code(dist)].Freq++; \
/external/pdfium/third_party/zlib_v128/
Dtrees.c415 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0; in init_block()
416 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0; in init_block()
417 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0; in init_block()
419 s->dyn_ltree[END_BLOCK].Freq = 1; in init_block()
444 (tree[n].Freq < tree[m].Freq || \
445 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
524 f = tree[n].Freq; in gen_bitlen()
559 *(long)tree[m].Freq; in gen_bitlen()
635 if (tree[n].Freq != 0) { in build_tree()
650 tree[node].Freq = 1; in build_tree()
[all …]
Ddeflate.h76 #define Freq fc.freq macro
327 s->dyn_ltree[cc].Freq++; \
336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
337 s->dyn_dtree[d_code(dist)].Freq++; \
/external/zlib/src/
Dtrees.c415 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
416 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
417 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
419 s->dyn_ltree[END_BLOCK].Freq = 1;
444 (tree[n].Freq < tree[m].Freq || \
445 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
524 f = tree[n].Freq;
559 *(long)tree[m].Freq;
635 if (tree[n].Freq != 0) {
650 tree[node].Freq = 1;
[all …]
Ddeflate.h76 #define Freq fc.freq macro
327 s->dyn_ltree[cc].Freq++; \
336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
337 s->dyn_dtree[d_code(dist)].Freq++; \
/external/llvm/lib/Analysis/
DBlockFrequencyInfo.cpp133 uint64_t Freq) { in setBlockFreq() argument
135 BFI->setBlockFreq(BB, Freq); in setBlockFreq()
155 printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const { in printBlockFreq()
156 return BFI ? BFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
DBlockFrequencyInfoImpl.cpp534 uint64_t Freq) { in setBlockFreq() argument
537 Freqs[Node.Index].Integer = Freq; in setBlockFreq()
557 const BlockFrequency &Freq) const { in printBlockFreq()
558 Scaled64 Block(Freq.getFrequency(), 0); in printBlockFreq()
/external/llvm/include/llvm/Analysis/
DBlockFrequencyInfo.h49 void setBlockFreq(const BasicBlock *BB, uint64_t Freq);
57 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
DBlockFrequencyInfoImpl.h480 void setBlockFreq(const BlockNode &Node, uint64_t Freq);
484 const BlockFrequency &Freq) const;
918 void setBlockFreq(const BlockT *BB, uint64_t Freq);
972 void BlockFrequencyInfoImpl<BT>::setBlockFreq(const BlockT *BB, uint64_t Freq) {
974 BlockFrequencyInfoImplBase::setBlockFreq(getNode(BB), Freq);
982 BlockFrequencyInfoImplBase::setBlockFreq(NewNode, Freq);
/external/llvm/include/llvm/CodeGen/
DMachineBlockFrequencyInfo.h58 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
/external/llvm/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp742 if (unsigned Freq = Stats.CodeFreq[i].NumInstances) in AnalyzeBitcode() local
743 FreqPairs.push_back(std::make_pair(Freq, i)); in AnalyzeBitcode()

12