HomeSort by relevance Sort by last modified time
    Searched defs:BFI (Results 1 - 25 of 43) sorted by null

1 2

  /external/swiftshader/third_party/LLVM/include/llvm/Analysis/
BlockFrequencyInfo.h 31 BlockFrequencyImpl<BasicBlock, Function, BranchProbabilityInfo> *BFI;
  /external/llvm/include/llvm/Analysis/
BlockFrequencyInfo.h 33 std::unique_ptr<ImplType> BFI;
94 /// \brief Run the analysis pass over a function and produce BFI.
110 BlockFrequencyInfo BFI;
118 BlockFrequencyInfo &getBFI() { return BFI; }
119 const BlockFrequencyInfo &getBFI() const { return BFI; }
LazyBlockFrequencyInfo.h 12 // the analysis pass is executed but rather when the BFI results is explicitly
32 /// rather when the BFI results is explicitly requested by the analysis client.
45 /// 3. The computed BFI should be requested with
53 /// Wraps a BFI to allow lazy computation of the block frequencies.
55 /// A pass that only conditionally uses BFI can uncondtionally require the
56 /// analysis without paying for the overhead if BFI doesn't end up being used.
70 /// Retrieve the BFI with the block frequencies computed.
74 BFI.calculate(*F, *BPI, *LI);
77 return BFI;
85 BFI.releaseMemory()
    [all...]
  /external/llvm/include/llvm/Transforms/Vectorize/
LoopVectorize.h 81 BlockFrequencyInfo *BFI;
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
BlockFrequencyInfo.h 41 std::unique_ptr<ImplType> BFI;
119 /// Run the analysis pass over a function and produce BFI.
136 BlockFrequencyInfo BFI;
144 BlockFrequencyInfo &getBFI() { return BFI; }
145 const BlockFrequencyInfo &getBFI() const { return BFI; }
LazyBlockFrequencyInfo.h 12 // the analysis pass is executed but rather when the BFI result is explicitly
30 /// Wraps a BFI to allow lazy computation of the block frequencies.
32 /// A pass that only conditionally uses BFI can uncondtionally require the
33 /// analysis without paying for the overhead if BFI doesn't end up being used.
49 /// Retrieve the BFI with the block frequencies computed.
53 BFI.calculate(
57 return BFI;
65 BFI.releaseMemory();
71 BlockFrequencyInfoT BFI;
81 /// rather when the BFI result is explicitly requested by the analysis client
    [all...]
OptimizationRemarkEmitter.h 11 // that by using this service passes become dependent on BFI as well. BFI is
40 OptimizationRemarkEmitter(const Function *F, BlockFrequencyInfo *BFI)
41 : F(F), BFI(BFI) {}
51 /// operation since BFI and all its required analyses are computed. This is
57 : F(Arg.F), BFI(Arg.BFI) {}
61 BFI = RHS.BFI;
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
CodeExtractor.h 56 BlockFrequencyInfo *BFI;
79 bool AggregateArgs = false, BlockFrequencyInfo *BFI = nullptr,
88 BlockFrequencyInfo *BFI = nullptr,
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Vectorize/
LoopVectorize.h 92 BlockFrequencyInfo *BFI;
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
CGProfile.cpp 44 auto &BFI = FAM.getResult<BlockFrequencyAnalysis>(F);
45 if (BFI.getEntryFreq() == 0)
49 Optional<uint64_t> BBCount = BFI.getBlockProfileCount(&BB);
CFGMST.h 103 uint64_t EntryWeight = (BFI != nullptr ? BFI->getEntryFreq() : 2);
124 (BFI != nullptr ? BFI->getBlockFreq(&*BB).getFrequency() : 2);
274 BlockFrequencyInfo *BFI;
279 : F(Func), BPI(BPI_), BFI(BFI_) {
PGOMemOPSizeOpt.cpp 138 MemOPSizeOpt(Function &Func, BlockFrequencyInfo &BFI,
140 : Func(Func), BFI(BFI), ORE(ORE), DT(DT), Changed(false) {
174 BlockFrequencyInfo &BFI;
246 auto BBEdgeCount = BFI.getBlockProfileCount(MI->getParent());
341 auto OrigBBFreq = BFI.getBlockFreq(BB);
349 BFI.setBlockFreq(MergeBB, OrigBBFreq.getFrequency());
415 static bool PGOMemOPSizeOptImpl(Function &F, BlockFrequencyInfo &BFI,
423 MemOPSizeOpt MemOPSizeOpt(F, BFI, ORE, DT);
429 BlockFrequencyInfo &BFI
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
OptimizationRemarkEmitter.cpp 11 // that by using this service passes become dependent on BFI as well. BFI is
26 : F(F), BFI(nullptr) {
42 // Finally compute BFI.
44 BFI = OwnedBFI.get();
51 // a fresh view of BFI if it was constructed with one.
52 if (BFI && Inv.invalidate<BlockFrequencyAnalysis>(F, PA))
60 if (!BFI)
63 return BFI->getBlockProfileCount(cast<BasicBlock>(V));
94 BlockFrequencyInfo *BFI;
    [all...]
BlockFrequencyInfo.cpp 51 ViewBlockFreqFuncName("view-bfi-func-name", cl::Hidden,
76 "-view-bfi-func-name."),
82 "print-bfi", cl::init(false), cl::Hidden,
86 "print-bfi-func-name", cl::Hidden,
144 const BlockFrequencyInfo *BFI) {
145 return BFIDOTGTraitsBase::getEdgeAttributes(Node, EI, BFI, BFI->getBPI(),
161 : BFI(std::move(Arg.BFI)) {}
165 BFI = std::move(RHS.BFI)
    [all...]
ModuleSummaryAnalysis.cpp 224 const Function &F, BlockFrequencyInfo *BFI,
292 auto ScaledCount = PSI->getProfileCount(&I, BFI);
307 if (BFI != nullptr && Hotness == CalleeInfo::HotnessType::Unknown) {
308 uint64_t BBFreq = BFI->getBlockFreq(&BB).getFrequency();
309 uint64_t EntryFreq = BFI->getEntryFreq();
504 BlockFrequencyInfo *BFI = nullptr;
507 BFI = GetBFICallback(F);
512 BFI = BFIPtr.get();
515 computeFunctionSummary(Index, M, F, BFI, PSI,
  /external/llvm/include/llvm/Transforms/Scalar/
JumpThreading.h 62 std::unique_ptr<BlockFrequencyInfo> BFI;
90 : TLI(Other.TLI), LVI(Other.LVI), BFI(std::move(Other.BFI)),
104 BFI.reset();
  /external/llvm/lib/Analysis/
ModuleSummaryAnalysis.cpp 66 const Function &F, BlockFrequencyInfo *BFI) {
88 auto ScaledCount = BFI ? BFI->getBlockProfileCount(&BB) : None;
134 BlockFrequencyInfo *BFI = nullptr;
137 BFI = Ftor(F);
142 BFI = BFIPtr.get();
145 computeFunctionSummary(F, BFI);
BlockFrequencyInfo.cpp 46 ViewBlockFreqFuncName("view-bfi-func-name", cl::Hidden,
106 const BlockFrequencyInfo *BFI) {
107 return BFIDOTGTraitsBase::getEdgeAttributes(Node, EI, BFI, BFI->getBPI(),
124 : BFI(std::move(Arg.BFI)) {}
128 BFI = std::move(RHS.BFI);
133 // defined at the first ODR-use which is the BFI member in the
141 if (!BFI)
    [all...]
  /external/llvm/unittests/Analysis/
BlockFrequencyInfoTest.cpp 64 BlockFrequencyInfo BFI = buildBFI(*F);
70 uint64_t BB0Freq = BFI.getBlockFreq(&BB0).getFrequency();
71 uint64_t BB1Freq = BFI.getBlockFreq(BB1).getFrequency();
72 uint64_t BB2Freq = BFI.getBlockFreq(BB2).getFrequency();
73 uint64_t BB3Freq = BFI.getBlockFreq(BB3).getFrequency();
79 EXPECT_EQ(BFI.getBlockProfileCount(&BB0).getValue(), UINT64_C(100));
80 EXPECT_EQ(BFI.getBlockProfileCount(BB3).getValue(), UINT64_C(100));
81 EXPECT_EQ(BFI.getBlockProfileCount(BB1).getValue(), 100 * BB1Freq / BB0Freq);
82 EXPECT_EQ(BFI.getBlockProfileCount(BB2).getValue(), 100 * BB2Freq / BB0Freq);
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/
ConstantHoisting.h 115 BlockFrequencyInfo *BFI, BasicBlock &Entry);
129 BlockFrequencyInfo *BFI;
JumpThreading.h 82 std::unique_ptr<BlockFrequencyInfo> BFI;
119 BFI.reset();
  /external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
BlockFrequencyInfoTest.cpp 63 BlockFrequencyInfo BFI = buildBFI(*F);
69 uint64_t BB0Freq = BFI.getBlockFreq(&BB0).getFrequency();
70 uint64_t BB1Freq = BFI.getBlockFreq(BB1).getFrequency();
71 uint64_t BB2Freq = BFI.getBlockFreq(BB2).getFrequency();
72 uint64_t BB3Freq = BFI.getBlockFreq(BB3).getFrequency();
78 EXPECT_EQ(BFI.getBlockProfileCount(&BB0).getValue(), UINT64_C(100));
79 EXPECT_EQ(BFI.getBlockProfileCount(BB3).getValue(), UINT64_C(100));
80 EXPECT_EQ(BFI.getBlockProfileCount(BB1).getValue(), 100 * BB1Freq / BB0Freq);
81 EXPECT_EQ(BFI.getBlockProfileCount(BB2).getValue(), 100 * BB2Freq / BB0Freq);
85 BFI.setBlockFreqAndScale(&BB0, BB0Freq * 2, BlocksToScale)
    [all...]
ProfileSummaryInfoTest.cpp 120 BlockFrequencyInfo BFI = buildBFI(*F);
121 EXPECT_FALSE(PSI.isHotBB(&BB0, &BFI));
122 EXPECT_FALSE(PSI.isColdBB(&BB0, &BFI));
125 EXPECT_FALSE(PSI.isHotCallSite(CS1, &BFI));
126 EXPECT_FALSE(PSI.isColdCallSite(CS1, &BFI));
158 BlockFrequencyInfo BFI = buildBFI(*F);
159 EXPECT_TRUE(PSI.isHotBB(&BB0, &BFI));
160 EXPECT_TRUE(PSI.isHotBB(BB1, &BFI));
161 EXPECT_FALSE(PSI.isHotBB(BB2, &BFI));
162 EXPECT_TRUE(PSI.isHotBB(BB3, &BFI));
    [all...]
  /external/llvm/lib/Transforms/Instrumentation/
CFGMST.h 88 uint64_t EntryWeight = (BFI != nullptr ? BFI->getEntryFreq() : 2);
103 (BFI != nullptr ? BFI->getBlockFreq(&*BB).getFrequency() : 2);
203 BlockFrequencyInfo *BFI;
208 : F(Func), BPI(BPI_), BFI(BFI_) {
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
LoopSink.cpp 84 BlockFrequencyInfo &BFI) {
87 T += BFI.getBlockFreq(B);
123 DominatorTree &DT, BlockFrequencyInfo &BFI) {
146 if (adjustedSumFreq(BBsDominatedByColdestBB, BFI) >
147 BFI.getBlockFreq(ColdestBB)) {
165 if (adjustedSumFreq(BBsToSinkInto, BFI) >
166 BFI.getBlockFreq(L.getLoopPreheader()))
179 BlockFrequencyInfo &BFI) {
201 findBBsToSinkInto(L, BBs, ColdLoopBBs, DT, BFI);
252 BlockFrequencyInfo &BFI,
    [all...]

Completed in 228 milliseconds

1 2