[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jan 22 07:43:01 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
Printer.cpp updated: 1.62 -> 1.63
---
Log message:
Allow disabling of ALL printing overhead when performing timings
---
Diffs of the changes: (+5 -0)
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.62 llvm/lib/Analysis/DataStructure/Printer.cpp:1.63
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.62 Wed Nov 12 23:05:41 2003
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Thu Jan 22 07:42:43 2004
@@ -29,6 +29,7 @@
//
namespace {
cl::opt<bool> OnlyPrintMain("only-print-main-ds", cl::ReallyHidden);
+ cl::opt<bool> DontPrintAnything("dont-print-ds", cl::ReallyHidden);
Statistic<> MaxGraphSize ("dsnode", "Maximum graph size");
Statistic<> NumFoldedNodes ("dsnode", "Number of folded nodes (in final graph)");
}
@@ -272,18 +273,22 @@
// print - Print out the analysis results...
void LocalDataStructures::print(std::ostream &O, const Module *M) const {
+ if (DontPrintAnything) return;
printCollection(*this, O, M, "ds.");
}
void BUDataStructures::print(std::ostream &O, const Module *M) const {
+ if (DontPrintAnything) return;
printCollection(*this, O, M, "bu.");
}
void TDDataStructures::print(std::ostream &O, const Module *M) const {
+ if (DontPrintAnything) return;
printCollection(*this, O, M, "td.");
}
void CompleteBUDataStructures::print(std::ostream &O, const Module *M) const {
+ if (DontPrintAnything) return;
printCollection(*this, O, M, "cbu.");
}
More information about the llvm-commits
mailing list