If only have function profile, don't print out "not executed" for all of the blocks :)

llvm-svn: 9622
This commit is contained in:
Chris Lattner 2003-10-30 23:44:28 +00:00
parent 2a5767e4f1
commit babc99cf80
1 changed files with 1 additions and 0 deletions

View File

@ -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