[llvm-commits] [llvm] r146453 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chad Rosier
mcrosier at apple.com
Mon Dec 12 16:05:12 PST 2011
Author: mcrosier
Date: Mon Dec 12 18:05:11 2011
New Revision: 146453
URL: http://llvm.org/viewvc/llvm-project?rev=146453&view=rev
Log:
[fast-isel] Guard "exhastive" fast-isel output with -fast-isel-verbose2.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=146453&r1=146452&r2=146453&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Mon Dec 12 18:05:11 2011
@@ -63,6 +63,10 @@
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 @@
}
#ifndef NDEBUG
- collectFailStats(Inst);
+ if (EnableFastISelVerbose2)
+ collectFailStats(Inst);
#endif
// Then handle certain instructions as single-LLVM-Instruction blocks.
More information about the llvm-commits
mailing list