[llvm-commits] [llvm] r147696 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chad Rosier
mcrosier at apple.com
Fri Jan 6 15:45:47 PST 2012
Author: mcrosier
Date: Fri Jan 6 17:45:47 2012
New Revision: 147696
URL: http://llvm.org/viewvc/llvm-project?rev=147696&view=rev
Log:
Add comment.
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=147696&r1=147695&r2=147696&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Fri Jan 6 17:45:47 2012
@@ -903,6 +903,10 @@
}
#ifndef NDEBUG
+// Collect per Instruction statistics for fast-isel misses. Only those
+// instructions that cause the bail are accounted for. It does not account for
+// instructions higher in the block. Thus, summing the per instructions stats
+// will not add up to what is reported by NumFastIselFailures.
static void collectFailStats(const Instruction *I) {
switch (I->getOpcode()) {
default: assert (0 && "<Invalid operator> ");
More information about the llvm-commits
mailing list