forked from OSchip/llvm-project
If only have function profile, don't print out "not executed" for all of the blocks :)
llvm-svn: 9622
This commit is contained in:
parent
2a5767e4f1
commit
babc99cf80
|
@ -64,6 +64,7 @@ namespace {
|
|||
<< " times.\n;;;\n";
|
||||
}
|
||||
virtual void emitBasicBlockAnnot(const BasicBlock *BB, std::ostream &OS) {
|
||||
if (BlockFreqs.empty()) return;
|
||||
if (unsigned Count = BlockFreqs[BB])
|
||||
OS << ";;; Executed " << Count << " times.\n";
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue