[llvm-commits] CVS: llvm/tools/llvm-prof/llvm-prof.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 30 17:45:01 PST 2003
Changes in directory llvm/tools/llvm-prof:
llvm-prof.cpp updated: 1.9 -> 1.10
---
Log message:
If only have function profile, don't print out "not executed" for all of the blocks :)
---
Diffs of the changes: (+1 -0)
Index: llvm/tools/llvm-prof/llvm-prof.cpp
diff -u llvm/tools/llvm-prof/llvm-prof.cpp:1.9 llvm/tools/llvm-prof/llvm-prof.cpp:1.10
--- llvm/tools/llvm-prof/llvm-prof.cpp:1.9 Thu Oct 30 17:42:09 2003
+++ llvm/tools/llvm-prof/llvm-prof.cpp Thu Oct 30 17:44:28 2003
@@ -64,6 +64,7 @@
<< " 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
More information about the llvm-commits
mailing list