aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-12-13 00:05:11 +0000
committerChad Rosier <mcrosier@apple.com>2011-12-13 00:05:11 +0000
commitf2a745efe50dfd57f0e83e5f3ed964611cba6077 (patch)
treef84c53fb9c1e8e5cf24f0c0c03bcbec83da80007 /lib/CodeGen/SelectionDAG
parent1619df065218087172cda10b54c34a3904c70938 (diff)
downloadexternal_llvm-f2a745efe50dfd57f0e83e5f3ed964611cba6077.zip
external_llvm-f2a745efe50dfd57f0e83e5f3ed964611cba6077.tar.gz
external_llvm-f2a745efe50dfd57f0e83e5f3ed964611cba6077.tar.bz2
[fast-isel] Guard "exhastive" fast-isel output with -fast-isel-verbose2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index f626353..477ec80 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -63,6 +63,10 @@ STATISTIC(NumDAGBlocks, "Number of blocks selected using DAG");
STATISTIC(NumDAGIselRetries,"Number of times dag isel has to try another path");
#ifndef NDEBUG
+static cl::opt<bool>
+EnableFastISelVerbose2("fast-isel-verbose2", cl::Hidden,
+ cl::desc("Enable extra verbose messages in the \"fast\" "
+ "instruction selector"));
// Terminators
STATISTIC(NumFastIselFailRet,"Fast isel fails on Ret");
STATISTIC(NumFastIselFailBr,"Fast isel fails on Br");
@@ -1086,7 +1090,8 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
}
#ifndef NDEBUG
- collectFailStats(Inst);
+ if (EnableFastISelVerbose2)
+ collectFailStats(Inst);
#endif
// Then handle certain instructions as single-LLVM-Instruction blocks.