Home
last modified time | relevance | path

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

/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.cpp28 BlockFrequency Freq(Frequency); in operator *() local
29 Freq *= Prob; in operator *()
30 return Freq; in operator *()
39 BlockFrequency Freq(Frequency); in operator /() local
40 Freq /= Prob; in operator /()
41 return Freq; in operator /()
44 BlockFrequency &BlockFrequency::operator+=(const BlockFrequency &Freq) { in operator +=() argument
45 uint64_t Before = Freq.Frequency; in operator +=()
46 Frequency += Freq.Frequency; in operator +=()
57 BlockFrequency Freq(Frequency); in operator +() local
[all …]
/external/lzma/C/
DPpmd7.c310 s->Freq = 1; in RestartModel()
378 upState.Freq = ONE_STATE(c)->Freq; in CreateSuccessors()
384 cf = s->Freq - 1; in CreateSuccessors()
386 … upState.Freq = (Byte)(1 + ((2 * cf <= s0) ? (5 * cf > s0) : ((2 * cf + 3 * s0 - 1) / (2 * s0)))); in CreateSuccessors()
427 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel()
434 if (s->Freq < 32) in UpdateModel()
435 s->Freq++; in UpdateModel()
443 if (s[0].Freq >= s[-1].Freq) in UpdateModel()
449 if (s->Freq < MAX_FREQ - 9) in UpdateModel()
451 s->Freq += 2; in UpdateModel()
[all …]
DPpmd7Dec.c87 if ((count = rc->GetThreshold(rc, p->MinContext->SummFreq)) < (hiCnt = s->Freq)) in Ppmd7_DecodeSymbol()
90 rc->Decode(rc, 0, s->Freq); in Ppmd7_DecodeSymbol()
100 if ((hiCnt += (++s)->Freq) > count) in Ppmd7_DecodeSymbol()
103 rc->Decode(rc, hiCnt - s->Freq, s->Freq); in Ppmd7_DecodeSymbol()
158 hiCnt += (s->Freq & k); in Ppmd7_DecodeSymbol()
172 for (hiCnt = 0; (hiCnt += (*pps)->Freq) <= count; pps++); in Ppmd7_DecodeSymbol()
174 rc->Decode(rc, hiCnt - s->Freq, s->Freq); in Ppmd7_DecodeSymbol()
DPpmd7Enc.c87 RangeEnc_Encode(rc, 0, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
93 sum = s->Freq; in Ppmd7_EncodeSymbol()
99 RangeEnc_Encode(rc, sum, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
104 sum += s->Freq; in Ppmd7_EncodeSymbol()
166 sum += (s->Freq & (int)(MASK(s->Symbol))); in Ppmd7_EncodeSymbol()
170 RangeEnc_Encode(rc, low, s1->Freq, sum + escFreq); in Ppmd7_EncodeSymbol()
176 sum += (s->Freq & (int)(MASK(cur))); in Ppmd7_EncodeSymbol()
DPpmd.h46 Byte Freq; member
DPpmd7.h89 &p->BinSumm[Ppmd7Context_OneState(p->MinContext)->Freq - 1][p->PrevSuccess + \
/external/llvm/lib/CodeGen/
DSpillPlacement.cpp235 uint64_t Freq = Entry.getFrequency(); in setThreshold() local
236 uint64_t Scaled = (Freq >> 13) + bool(Freq & (1 << 12)); in setThreshold()
245 BlockFrequency Freq = BlockFrequencies[I->Number]; in addConstraints() local
251 nodes[ib].addBias(Freq, I->Entry); in addConstraints()
258 nodes[ob].addBias(Freq, I->Exit); in addConstraints()
267 BlockFrequency Freq = BlockFrequencies[*I]; in addPrefSpill() local
269 Freq += Freq; in addPrefSpill()
274 nodes[ib].addBias(Freq, PrefSpill); in addPrefSpill()
275 nodes[ob].addBias(Freq, PrefSpill); in addPrefSpill()
295 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.cpp1093 BlockFrequency Freq = MBFI->getBlockFreq(ChainBB); in buildCFGChains() local
1094 if (Freq < WeightedEntryFreq) in buildCFGChains()
1101 if (Freq < (LoopHeaderFreq * ColdProb)) in buildCFGChains()
1123 if (LayoutEdgeFreq <= (Freq * ColdProb)) in buildCFGChains()
DRegAllocGreedy.cpp391 BlockFrequency Freq; member
397 HintInfo(BlockFrequency Freq, unsigned Reg, unsigned PhysReg) in HintInfo()
398 : Freq(Freq), Reg(Reg), PhysReg(PhysReg) {} in HintInfo()
2304 Cost += Info.Freq; in getBrokenHintFreq()
DLiveIntervalAnalysis.cpp814 BlockFrequency Freq = MBFI->getBlockFreq(MI->getParent()); in getSpillWeight() local
816 return (isDef + isUse) * (Freq.getFrequency() * Scale); in getSpillWeight()
/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/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/
Dfx_zlib_trees.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/llvm/include/llvm/Support/
DBlockFrequency.h29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency() argument
49 BlockFrequency &operator+=(const BlockFrequency &Freq);
50 const BlockFrequency operator+(const BlockFrequency &Freq) const;
/external/llvm/lib/Analysis/
DBlockFrequencyInfo.cpp170 printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const { in printBlockFreq()
171 return BFI ? BFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
DBlockFrequencyInfoImpl.cpp547 const BlockFrequency &Freq) const { in printBlockFreq()
548 Scaled64 Block(Freq.getFrequency(), 0); in printBlockFreq()
/external/llvm/include/llvm/CodeGen/
DMachineBlockFrequencyInfo.h58 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
/external/llvm/include/llvm/Analysis/
DBlockFrequencyInfo.h56 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
DBlockFrequencyInfoImpl.h461 const BlockFrequency &Freq) const;
/external/llvm/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp648 if (unsigned Freq = Stats.CodeFreq[i].NumInstances) in AnalyzeBitcode() local
649 FreqPairs.push_back(std::make_pair(Freq, i)); in AnalyzeBitcode()