summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
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
commit2f8347e0b6053efb1a3632c02a5d153e3626ca00 (patch)
tree2d11065310732cf04ff4b4449289ab5cc24356d4 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent4dc71835f5c1fc2ce9fb04645d0c7093482c9a70 (diff)
downloadbcm5719-llvm-2f8347e0b6053efb1a3632c02a5d153e3626ca00.tar.gz
bcm5719-llvm-2f8347e0b6053efb1a3632c02a5d153e3626ca00.zip
[fast-isel] Guard "exhastive" fast-isel output with -fast-isel-verbose2.
llvm-svn: 146453
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index f6263533f04..477ec807edd 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud