aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-01-06 23:45:47 +0000
committerChad Rosier <mcrosier@apple.com>2012-01-06 23:45:47 +0000
commit4bf76e0e28c2cc358e1106b64cad2fa59714df53 (patch)
tree2439d4ed2fb65c93878a2b02cb002fad73fd1a3d /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parente016789b7380b2a452f81ce15c2e382e62ede120 (diff)
Add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 1e7bf667d4..bfb6dfa0b1 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -903,6 +903,10 @@ static bool isFoldedOrDeadInstruction(const Instruction *I,
}
#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> ");