search for: bfipass

Displaying 1 result from an estimated 1 matches for "bfipass".

Did you mean: barpass
2019 Jan 13
2
Problem using BlockFrequencyInfo's getBlockProfileCount
...-freq -pgo-instr-use -pgo-test-profile-file=output.prof -profile-sample-accurate -mypass Is this a bug or am can someone provide an example on how to use BlockFrequencyInfo correctly? Example code: for (auto& F : M) {     if (F.isDeclaration()) {         continue;     }     auto& bfiPass = getAnalysis<BlockFrequencyInfoWrapperPass>(F);     llvm::BlockFrequencyInfo* BFI = &bfiPass.getBFI();     //Works - shows all info I want     BFI->print(llvm::dbgs());     for (const llvm::BasicBlock& B : F) {         //Fails with SIGSEGV -> *getFunction() returns 0xa...