summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-22 13:42:43 +0000
committerChris Lattner <sabre@nondot.org>2004-01-22 13:42:43 +0000
commit45fd9d59c0bfb3dcceaf2280c3da110955c8a268 (patch)
treef21709ab8d78165996398be053ccac436508b25d
parent4f4cf4b01cd11bc5725c8378350e46d6c8f21981 (diff)
downloadbcm5719-llvm-45fd9d59c0bfb3dcceaf2280c3da110955c8a268.tar.gz
bcm5719-llvm-45fd9d59c0bfb3dcceaf2280c3da110955c8a268.zip
Allow disabling of ALL printing overhead when performing timings
llvm-svn: 10948
-rw-r--r--llvm/lib/Analysis/DataStructure/Printer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Printer.cpp b/llvm/lib/Analysis/DataStructure/Printer.cpp
index 7e73bb0aee4..7cea561c148 100644
--- a/llvm/lib/Analysis/DataStructure/Printer.cpp
+++ b/llvm/lib/Analysis/DataStructure/Printer.cpp
@@ -29,6 +29,7 @@ using namespace llvm;
//
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 @@ static void printCollection(const Collection &C, std::ostream &O,
// 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.");
}
OpenPOWER on IntegriCloud